/* Stackbook site, v2 (2026-11-19): a well-made engineering document.
   Off-white paper, near-black ink, one ink-blue accent, amber only for mismatches.
   Serif headings, sans body at 18px, monospace with tabular figures for every number. */

@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --paper: #faf9f6;
  --sheet: #ffffff;
  --band: #f2f0ea;
  --ink: #15181d;
  --text: #1f242b;
  --quiet: #3b424c;
  --rule: #d4d0c7;
  --rule-soft: #e6e2da;
  --accent: #1f3d6b;
  --accent-dark: #152c4f;
  --amber: #fbe2a4;
  --amber-edge: #a86a12;
  --amber-ink: #4d3200;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 40rem;
  --wide: 70rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { color: var(--ink); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: 2.3rem; line-height: 1.1; }
h2 { font-size: 1.75rem; line-height: 1.2; }
h3 { font-family: var(--sans); font-size: 1.1875rem; font-weight: 650; line-height: 1.35; }
.num, .mono, code, kbd, samp { font-family: var(--mono); font-variant-numeric: tabular-nums; }
figure { margin: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: #fff; padding: 0.5rem 0.75rem; z-index: 10; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem; }
.quiet { color: var(--quiet); }
.prose { max-width: var(--measure); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.8rem 1.2rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
  background: transparent;
  color: var(--accent);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { text-decoration: underline; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-small { padding: 0.5rem 0.8rem; font-size: 0.9375rem; }

/* Header */
.site-head { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1.5rem; padding-top: 0.8rem; padding-bottom: 0.8rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 650; font-size: 1.35rem; letter-spacing: -0.01em; margin-right: auto; }
.wordmark svg { width: 24px; height: 24px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 1rem; order: 3; width: 100%; }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.head-cta { order: 2; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 2.5rem; font-size: 1rem; color: var(--text); }
.site-foot .wrap { display: grid; gap: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.site-foot a { color: var(--text); }

/* Sections */
.section { padding: 3.5rem 0; }
.band { background: var(--band); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.section-head { margin-bottom: 1.75rem; max-width: var(--measure); }
.section-head p { margin-top: 0.5rem; color: var(--quiet); }

/* Hero */
.hero { padding: 2.75rem 0 3.5rem; }
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { max-width: 15em; }
.hero .lede { font-size: 1.1875rem; line-height: 1.6; margin: 1.1rem 0 0; max-width: 36rem; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* The document page: a report check */
.paper {
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: 2px;
  box-shadow: 0 1px 0 var(--rule-soft), 0 10px 28px rgba(21, 24, 29, 0.08);
  padding: 1.1rem 1.1rem 0.9rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}
.paper-head, .paper-foot { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.8125rem; color: var(--quiet); }
.paper-head { border-bottom: 2px solid var(--ink); padding-bottom: 0.45rem; }
.paper-head strong { color: var(--ink); font-weight: 650; }
.paper-foot { border-top: 1px solid var(--rule); padding-top: 0.5rem; margin-top: 0.9rem; }
.paper-label { font-weight: 650; color: var(--amber-ink); }
.findings { list-style: none; margin: 0; padding: 0; }
.findings li { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 0 0.75rem; padding: 0.7rem 0; border-bottom: 1px solid var(--rule-soft); }
.findings li:last-child { border-bottom: 0; }
.findings .pg { font-family: var(--mono); font-size: 0.8125rem; color: var(--quiet); padding-top: 0.12rem; }
.findings .what { color: var(--ink); font-weight: 600; }
.findings .vals { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; margin-top: 0.25rem; font-family: var(--mono); font-size: 0.875rem; }
.findings .vals span { white-space: nowrap; }
.findings .ok { color: var(--quiet); font-family: var(--mono); font-size: 0.8125rem; }
.findings li.mm { background: var(--amber); margin: 0 -1.1rem; padding: 0.7rem 1.1rem; border-left: 4px solid var(--amber-edge); border-bottom-color: #f0d38a; }
.flag {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border: 1px solid var(--amber-edge);
  border-radius: 2px;
  background: #fff7e0;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-ink);
  vertical-align: 0.1em;
}

/* What it catches: four cards */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.card { background: var(--sheet); border: 1px solid var(--rule); border-radius: 2px; padding: 1.25rem 1.25rem 1.1rem; }
.card h3 { margin-bottom: 0.4rem; }
.card p { margin: 0; }
.card .eg { margin-top: 0.9rem; padding: 0.6rem 0.75rem; background: var(--amber); border-left: 4px solid var(--amber-edge); font-family: var(--mono); font-size: 0.875rem; line-height: 1.5; color: var(--amber-ink); }
.card .eg b { font-weight: 600; color: var(--ink); }
.cards-note { margin-top: 1rem; font-size: 1rem; color: var(--quiet); }

/* How a trial works */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); gap: 0 0.9rem; border-top: 2px solid var(--ink); padding-top: 0.9rem; }
.steps li::before { content: counter(step); grid-row: 1 / span 2; font-family: var(--mono); font-weight: 600; font-size: 1.5rem; line-height: 1.1; color: var(--accent); }
.steps h3 { margin-bottom: 0.25rem; }
.steps p { margin: 0; }

/* Your files */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--rule); max-width: 46rem; }
.facts div { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.facts dt { font-weight: 650; color: var(--ink); }
.facts dd { margin: 0.15rem 0 0; }
.more { display: inline-block; margin-top: 1.25rem; font-weight: 650; }

/* Who's behind it */
.person { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; max-width: 46rem; }
.photo { width: 6.5rem; height: 6.5rem; border: 1px dashed var(--quiet); border-radius: 2px; display: grid; place-items: center; text-align: center; font-size: 0.8125rem; color: var(--quiet); background: var(--sheet); }
.person h3 { font-family: var(--serif); font-size: 1.4rem; font-weight: 600; }
.person p { margin: 0.35rem 0 0; }
.person ul { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; gap: 0.2rem; }

/* Contact */
.contact-list { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 0; }
.contact-list dt { color: var(--quiet); }
.contact-list dd { margin: 0; color: var(--ink); }

/* Inner pages */
.page { padding: 3rem 0 3.5rem; }
.page .wrap { max-width: 48rem; }
.page h1 { margin-bottom: 1rem; }
.page h2 { font-size: 1.45rem; margin: 2.25rem 0 0.6rem; }
.page h3 { margin: 1.25rem 0 0.4rem; }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: 0.45rem; }
.lede { font-size: 1.1875rem; color: var(--text); }
.updated { color: var(--quiet); font-size: 1rem; }
.draft-banner { border: 1px solid var(--rule); border-left: 4px solid var(--accent); background: var(--sheet); padding: 0.6rem 0.85rem; margin: 0 0 1.5rem; font-size: 1rem; }
.page.wide .wrap { max-width: 52rem; }

/* /checks */
.checks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.checks li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.checks strong { color: var(--ink); display: block; font-weight: 650; }
.methods { display: grid; gap: 1.5rem; }
.methods h3 { margin-bottom: 0.4rem; }
.methods ul { margin: 0; padding-left: 1.2rem; }
.tag { display: inline-block; font-size: 0.8125rem; font-weight: 650; border: 1px solid var(--quiet); color: var(--quiet); border-radius: 2px; padding: 0 0.35rem; margin-left: 0.35rem; vertical-align: 0.1em; }

/* /trust */
.trust .status-line { font-weight: 600; color: var(--ink); border-left: 4px solid var(--accent); padding-left: 0.85rem; }
.trust .download a { font-weight: 650; }
.trust .quotes { padding-left: 1.2rem; }
.trust .quotes li { margin-bottom: 0.7rem; }
.trust .quotes ul { margin: 0.35rem 0 0.4rem; }
.trust .sources { font-size: 1rem; color: var(--quiet); }
.glance { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.6rem 1.5rem; margin: 1.5rem 0 0.5rem; padding: 1rem 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.glance dt { font-weight: 650; color: var(--ink); }
.glance dd { margin: 0; }
details { margin: 0.6rem 0 1rem; }
summary { cursor: pointer; font-weight: 650; color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
details[open] summary { margin-bottom: 0.5rem; }
.table-wrap { overflow-x: auto; }
.subprocessors { width: 100%; border-collapse: collapse; font-size: 1rem; min-width: 34rem; background: var(--sheet); }
.subprocessors th, .subprocessors td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--rule); }
.subprocessors thead th { border-bottom: 2px solid var(--ink); color: var(--ink); font-weight: 650; }
.subprocessors td:first-child { font-weight: 650; color: var(--ink); white-space: nowrap; }
.print-only { display: none; }

/* Preview only: claims waiting on Naman and notes for him. Never shipped live. */
.preview [data-claim] { outline: 2px dashed #9b1c1c; outline-offset: 2px; }
.preview [data-claim]:not(.btn):not(.paper):not(.card):not(.photo) { background: #fdeceb; }
.preview [data-claim]::after { content: " [" attr(data-claim) "]"; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; color: #9b1c1c; }
.pnote { display: block; border: 2px dashed #9b1c1c; background: #fdeceb; color: #4a0d0d; padding: 0.6rem 0.8rem; margin: 0.75rem 0; font-size: 1rem; }
.preview-bar { background: #4a0d0d; color: #fff; font-size: 0.9375rem; padding: 0.45rem 0; }

@media (min-width: 48rem) {
  h1 { font-size: 2.9rem; }
  h2 { font-size: 2rem; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .wordmark { margin-right: 0; }
  .section { padding: 5rem 0; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; }
  .steps li { display: block; }
  .steps li::before { display: block; margin-bottom: 0.6rem; }
  .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 4rem; align-items: start; }
  .split .section-head { margin-bottom: 0; }
  .paper { padding: 1.4rem 1.6rem 1rem; }
  .findings li.mm { margin: 0 -1.6rem; padding: 0.7rem 1.6rem; }
  .person { grid-template-columns: 8rem minmax(0, 1fr); }
  .photo { width: 8rem; height: 8rem; }
  .site-foot .wrap { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 66rem) {
  .hero { padding: 4.5rem 0 5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 4rem; }
  h1 { font-size: 3.2rem; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Print: /trust (and any page) prints as a clean document. */
@media print {
  @page { size: Letter; margin: 0.6in 0.65in; }
  body { background: #fff; font-size: 9.5pt; line-height: 1.42; color: #000; }
  .site-head, .site-foot, .preview-bar, .skip, .pnote, .download, .actions, summary { display: none !important; }
  .print-only { display: block; }
  .page { padding: 0; }
  .page .wrap { max-width: none; padding: 0; }
  .page h1 { font-size: 18pt; margin-bottom: 0.2rem; }
  .page h2 { font-size: 11.5pt; margin: 0.9rem 0 0.25rem; break-after: avoid; }
  .page h3 { font-size: 9.5pt; margin: 0.5rem 0 0.15rem; }
  .page p { margin-bottom: 0.4rem; }
  .page li, .trust .quotes li { margin-bottom: 0.2rem; }
  .trust .lede { display: none; }
  .trust .sources { font-size: 8pt; }
  .glance { margin: 0.5rem 0; padding: 0.4rem 0; gap: 0.25rem 1rem; }
  .subprocessors { font-size: 8.5pt; min-width: 0; }
  .subprocessors th, .subprocessors td { padding: 0.25rem 0.5rem 0.25rem 0; }
  .subprocessors tr { break-inside: avoid; }
  .trust .print-head { color: #333; margin-bottom: 0.6rem; }
  .trust .print-foot { margin-top: 0.8rem; color: #333; border-top: 1px solid #999; padding-top: 0.35rem; }
  .preview-print { border: 1.5px dashed #9b1c1c; color: #4a0d0d; padding: 0.3rem 0.5rem; margin-bottom: 0.5rem; font-weight: 600; }
  a { color: #000; }
  .preview [data-claim]::after { font-size: 6pt; }
}

/* /sample */
.example-banner { display: inline-block; background: var(--amber); border: 1px solid var(--amber-edge); color: var(--amber-ink); font-weight: 650; padding: 0.3rem 0.7rem; border-radius: 2px; margin-bottom: 1.25rem; font-size: 1rem; }
.job-card { margin: 1.5rem 0 0.5rem; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); padding: 0.5rem 0; }
.job-card div { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1rem; padding: 0.35rem 0; }
.job-card dt { font-weight: 650; color: var(--ink); }
.job-card dd { margin: 0; }
.finding-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.finding { background: var(--sheet); border: 1px solid var(--rule); border-left: 4px solid var(--rule); border-radius: 2px; padding: 1rem 1.15rem; }
.finding.mm { border-left-color: var(--amber-edge); }
.finding.q, .finding.w { border-left-color: var(--accent); }
.finding-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.6rem; margin-bottom: 0.6rem; }
.finding-head h3 { margin: 0; font-size: 1.125rem; }
.finding-head .flag { margin-left: 0; }
.flag-q, .flag-w { border-color: var(--accent); color: var(--accent); background: #eef2f8; }
.finding p { margin: 0.6rem 0 0; }
.vals-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.vals-table th, .vals-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.vals-table thead th { border-bottom: 1px solid var(--ink); font-weight: 650; color: var(--ink); font-size: 0.875rem; }
.vals-table .num { text-align: right; white-space: nowrap; }
.vals-table td:nth-child(2) { white-space: nowrap; }
.vals-table tr.hl td { background: var(--amber); color: var(--amber-ink); font-weight: 600; }
.clear-list { padding-left: 1.2rem; }
.sample-foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--quiet); }
@media print {
  .example-banner { font-size: 9pt; padding: 0.15rem 0.5rem; margin-bottom: 0.5rem; }
  .sample .lede { font-size: 9.5pt; }
  .finding { padding: 0.45rem 0.6rem; break-inside: avoid; }
  .finding-list { gap: 0.45rem; }
  .finding-head h3 { font-size: 10pt; }
  .vals-table { font-size: 8.5pt; }
  .vals-table th, .vals-table td { padding: 0.15rem 0.35rem; }
  .job-card div { padding: 0.1rem 0; }
  .vals-table tr.hl td, .example-banner, .flag { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.vals-table th.num { font-family: var(--sans); }
.vals-table td:nth-child(2), .vals-table th:nth-child(2) { text-align: left; }
@media (max-width: 47.99rem) {
  .finding { padding: 0.9rem 0.8rem; }
  .vals-table { font-size: 0.875rem; }
  .vals-table th, .vals-table td { padding: 0.35rem 0.3rem; }
  .vals-table td:nth-child(2) { white-space: normal; }
}
/* founder block without a photo */
.person, .person:is(*) { display: block; max-width: 40rem; }
.person-contact { margin-top: 1rem; }
@media (min-width: 48rem) { .person { display: block; } }
.contact-list dd, .facts dd { overflow-wrap: anywhere; min-width: 0; }
