:root {
  --bg: #fbfbf9;
  --ink: #14150f;
  --accent: #c2410c;
  --rule: #e2e0d6;
  --dot: #c9c9bd;
  /* De-emphasized functional text (labels, meta lines). A solid color, not
     opacity, so every use holds >=4.5:1 against --bg regardless of what's
     behind it. Measured 5.59:1 (WCAG relative-luminance formula). Hierarchy
     against full --ink comes from size/weight/case/letter-spacing, not shade. */
  --muted: #656661;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.65;
}

a { color: var(--ink); }

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 44px;
  padding: 0 clamp(18px, 5vw, 46px);
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}

.wrap { max-width: 860px; margin: 0 auto; padding: 30px clamp(18px, 5vw, 46px) 60px; }

.idblock { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 20px; }
.portrait {
  width: 104px; height: 104px; flex-shrink: 0;
  border: 1px solid var(--ink);
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

h1 { font-size: clamp(26px, 6vw, 32px); letter-spacing: -.025em; margin: 0 0 3px; line-height: 1.05; }
.sub { font-size: 13px; color: var(--muted); margin: 0 0 13px; }
.hook { font-size: clamp(17px, 4.4vw, 20px); font-weight: 700; letter-spacing: -.015em; line-height: 1.3; margin: 0; }
.pitch { margin: 0 0 8px; max-width: 66ch; }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  margin: 22px 0 20px;
}
.metrics > div { padding: 13px 15px 12px; border-right: 1px dotted var(--dot); }
.metrics > div:last-child { border-right: 0; }
.metrics .v { font-size: 23px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: break-word; word-break: break-word; }
.metrics .l { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.35; overflow-wrap: break-word; word-break: break-word; }

.ctas { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 9px; }
.btn, .btn2 {
  display: inline-block;
  font-weight: 700; font-size: 13px;
  border-radius: 2px; text-decoration: none;
}
.btn { background: var(--accent); color: #fff; padding: 11px 20px; border: 1.5px solid var(--accent); }
.btn2 { background: transparent; color: var(--accent); padding: 11px 20px; border: 1.5px solid var(--accent); }
.btn:hover, .btn2:hover { filter: brightness(.92); }
.btn:focus-visible, .btn2:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Browsers drop background-color by default when printing/saving to PDF, which
   would leave .btn's white label text invisible on a white page while its
   border still renders. Fall back to the outline style .btn2 already uses,
   which is print-safe by construction (transparent background, colored text
   and border) instead of relying on background-color surviving print. */
@media print {
  .btn { background: transparent; color: var(--accent); }
}

.quiet { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.quiet a { margin-right: 15px; }

.sh {
  font-size: 11px; font-weight: 400;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); margin: 32px 0 10px;
  border-bottom: 1px solid var(--rule); padding-bottom: 6px;
}

.row { display: grid; grid-template-columns: 150px 1fr; gap: 4px 18px; margin: 0 0 6px; }
.row .k { color: var(--muted); }

.limits { border-left: 2px solid var(--accent); padding: 2px 0 2px 14px; margin: 12px 0; max-width: 66ch; }

ul { margin: 0 0 6px; padding-left: 18px; }
li { margin-bottom: 6px; max-width: 72ch; }

.foot {
  border-top: 1px solid var(--ink);
  margin-top: 30px; padding-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 12px;
}
.foot > span:first-child { color: var(--muted); }

@media (max-width: 720px) {
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics > div:nth-child(2) { border-right: 0; }
  .metrics > div:nth-child(1), .metrics > div:nth-child(2) { border-bottom: 1px dotted var(--dot); }
  .row { grid-template-columns: 1fr; gap: 0; margin-bottom: 12px; }
  .idblock { gap: 16px; }
  .portrait { width: 76px; height: 76px; }
}

/* Essay pages. Scoped to .essay so the single-page layout above is untouched. */
.essay{max-width:34rem}
.essay h1{margin:1.6rem 0 .4rem;line-height:1.15}
.essay .dek{font-size:1.05rem;line-height:1.5;margin:0 0 .6rem}
.essay h2{margin:2rem 0 .5rem;font-size:1.05rem;letter-spacing:.02em}
.essay p{line-height:1.62;margin:0 0 1rem}
.essay pre{overflow-x:auto;padding:.85rem 1rem;border-radius:4px;font-size:.82rem;line-height:1.5;
  font-family:inherit;background:rgba(127,127,127,.09);max-width:none}
/* The opening block quotes two emails at up to 87 characters. Inside the 34rem
   measure that clipped 37% of it, including the line the next paragraph quotes
   as evidence. A fixed negative margin was a guess and still clipped 17%, so the
   block is sized to its own content and centred on the column instead. */
@media (min-width:900px){
  .essay pre{
    width:max-content;
    max-width:min(90vw,58rem);
    position:relative;
    left:50%;
    transform:translateX(-50%);
  }
}
.essay code{font-size:.86em}
.essay pre code{font-size:1em}
.essay hr{margin:2.2rem 0 1.2rem;border:0;border-top:1px solid currentColor;opacity:.2}
.essay .topbar a{text-decoration:none}
