/* =========================================================================
   IVA by AI Humane — site styles (homepage, memo, pilots, trust, labs)
   Visual idea: the work order. Printed form text in navy ink; anything IVA
   wrote appears in blue ballpoint ink (--pen). /plan/ and /test/ keep the
   legacy styles.css.
   ========================================================================= */

:root {
  --paper: #eef1f3;
  --sheet: #ffffff;
  --ink: #14202b;
  --muted: #56636f;
  --rule: #c6cfd7;
  --rule-strong: #8f9ca8;
  --pen: #2741c7;
  --pen-ink: #ffffff;
  --pen-soft: #e3e8fb;

  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --measure: 64ch;
  --container: 1180px;
  --gutter: 24px;
  --radius: 6px;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f151b;
    --sheet: #161e26;
    --ink: #e4eaf0;
    --muted: #9aa7b3;
    --rule: #2a3540;
    --rule-strong: #4a5866;
    --pen: #8fa3ff;
    --pen-ink: #0f151b;
    --pen-soft: #1d2547;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --paper: #0f151b;
  --sheet: #161e26;
  --ink: #e4eaf0;
  --muted: #9aa7b3;
  --rule: #2a3540;
  --rule-strong: #4a5866;
  --pen: #8fa3ff;
  --pen-ink: #0f151b;
  --pen-soft: #1d2547;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--pen);
}

:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.02;
  font-weight: 820;
  font-variation-settings: "wdth" 116;
  letter-spacing: -0.025em;
  max-width: 14ch;
}

h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  line-height: 1.1;
  font-weight: 760;
  font-variation-settings: "wdth" 112;
  max-width: 22ch;
}

h3 {
  font-size: 1.1875rem;
  line-height: 1.3;
  font-weight: 680;
}

p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.lede {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 46ch;
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--rule);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink);
}

.brand-name {
  font-size: 1.5rem;
  font-weight: 850;
  font-variation-settings: "wdth" 120;
  letter-spacing: -0.02em;
}

.brand-by {
  font-size: 0.8125rem;
  color: var(--muted);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9375rem;
}

.nav-menu a {
  text-decoration: none;
  color: var(--ink);
}

.nav-menu a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--pen);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.4em;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  color: var(--ink);
  font: inherit;
  font-size: 0.875rem;
  padding: 6px 12px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--ink);
  font: inherit;
  font-size: 0.9875rem;
  font-weight: 620;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.button.primary {
  background: var(--pen);
  border-color: var(--pen);
  color: var(--pen-ink);
}

.button.primary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav-menu .button {
  min-height: 38px;
  padding: 0 14px;
  font-size: 0.875rem;
  color: var(--pen-ink);
}

.nav-menu .button:hover {
  color: var(--paper);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 9vw, 120px) 0;
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section-head {
  margin-bottom: clamp(32px, 4vw, 52px);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  padding: clamp(40px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.hero .lede {
  margin-top: 24px;
}

/* ---------- The work order (signature element) ---------- */

.wo {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(20, 32, 43, 0.45);
  font-size: 0.9375rem;
}

.wo-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 2px solid var(--ink);
}

.wo-title {
  font-weight: 780;
  font-variation-settings: "wdth" 115;
  font-size: 1.0625rem;
}

.wo-id {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.wo-fields {
  margin: 0;
}

.wo-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  border-bottom: 1px solid var(--rule);
}

.wo-row dt {
  padding: 10px 12px 10px 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 560;
  border-right: 1px solid var(--rule);
}

.wo-row dd {
  margin: 0;
  padding: 10px 18px 10px 14px;
  color: var(--pen);
  font-weight: 480;
  min-height: 2.6em;
}

.wo-typed::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--pen);
  opacity: 0;
}

.wo-row.is-typing .wo-typed::after {
  opacity: 1;
}

.wo-sign {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  align-items: end;
}

.wo-sign dt {
  padding: 18px 12px 12px 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 560;
}

.wo-sign dd {
  margin: 0 18px 14px 14px;
  border-bottom: 1.5px solid var(--ink);
  min-height: 2.2em;
  display: flex;
  align-items: end;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 0.8125rem;
}

.wo figcaption {
  padding: 12px 18px 16px;
  border-top: 1px solid var(--rule);
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}

.ink {
  color: var(--pen);
  font-weight: 600;
}

/* ---------- Gap (the claim) ---------- */

.gap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.gap-grid p {
  font-size: 1.125rem;
}

.split-bar {
  margin: 8px 0 0;
}

.split-bar figcaption {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.45;
}

.bar {
  display: grid;
  gap: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr) 3.5em;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}

.bar-track {
  height: 14px;
  background: var(--rule);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  display: block;
  height: 100%;
  background: var(--ink);
}

.bar-row.is-admin .bar-fill {
  background: var(--pen);
}

.bar-value {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ---------- Steps (a real sequence) ---------- */

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  counter-reset: step;
  border-top: 2px solid var(--ink);
}

.steps li {
  counter-increment: step;
  padding: 22px 28px 8px 0;
}

.steps li + li {
  padding-left: 28px;
  border-left: 1px solid var(--rule);
}

.steps li::before {
  content: "Step " counter(step);
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.steps h3 {
  margin-bottom: 10px;
}

.steps p {
  color: var(--muted);
  font-size: 1rem;
}

/* ---------- Verticals ---------- */

.verticals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}

.vertical h3 {
  font-size: 1.375rem;
  font-variation-settings: "wdth" 112;
  margin-bottom: 10px;
}

.vertical p {
  color: var(--muted);
}

.record-list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-top: 1px solid var(--rule);
}

.record-list li {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 0.9375rem;
}

.record-list span:first-child {
  color: var(--muted);
}

.record-list span:last-child {
  color: var(--pen);
}

/* ---------- Pilot timeline ---------- */

.pilot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline li {
  display: grid;
  grid-template-columns: 6.5em minmax(0, 1fr);
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--rule);
}

.timeline .when {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.timeline h3 {
  font-size: 1.0625rem;
  margin-bottom: 4px;
}

.timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9875rem;
}

.measures {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.measures li {
  padding: 8px 0 8px 22px;
  position: relative;
}

.measures li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.95em;
  width: 10px;
  height: 2px;
  background: var(--pen);
}

/* ---------- Trust ---------- */

.commitments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin: 0;
}

.commitments div {
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}

.commitments dt {
  font-weight: 700;
  margin-bottom: 6px;
}

.commitments dd {
  margin: 0;
  color: var(--muted);
}

/* ---------- Memo callout ---------- */

.memo-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: clamp(28px, 4vw, 48px);
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: var(--sheet);
}

.memo-callout blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.375rem, 2.6vw, 1.875rem);
  line-height: 1.3;
  max-width: 34ch;
}

.memo-callout p {
  margin: 14px 0 0;
  color: var(--muted);
}

/* ---------- Founder ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.founder-facts {
  margin: 0;
}

.founder-facts div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}

.founder-facts dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.founder-facts dd {
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 820px;
}

.faq-list details {
  border-top: 1px solid var(--rule);
  padding: 4px 0;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  cursor: pointer;
  padding: 16px 32px 16px 0;
  font-weight: 650;
  list-style: none;
  position: relative;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 12px;
  font-size: 1.375rem;
  font-weight: 400;
  color: var(--muted);
}

.faq-list details[open] summary::after {
  content: "\2212";
}

.faq-list details p {
  color: var(--muted);
  padding-bottom: 8px;
}

/* ---------- Final CTA ---------- */

.final {
  padding: clamp(72px, 10vw, 128px) 0;
  border-top: 1px solid var(--rule);
}

.final h2 {
  max-width: 18ch;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 2px solid var(--ink);
  padding: 32px 0 48px;
  font-size: 0.9375rem;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
}

.footer-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.footer-links a {
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* ---------- Inner pages ---------- */

.page-head {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 56px);
}

.page-head h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  max-width: 18ch;
}

.page-head .lede {
  margin-top: 20px;
}

.prose {
  max-width: 720px;
}

.prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin: 56px 0 16px;
}

.prose h3 {
  margin: 32px 0 10px;
}

.prose ul,
.prose ol {
  padding-left: 1.25em;
  max-width: var(--measure);
}

.prose li {
  margin-bottom: 0.5em;
}

.empty-log {
  margin-top: 24px;
  padding: 24px;
  border: 1.5px dashed var(--rule-strong);
  border-radius: 4px;
  max-width: 720px;
}

.empty-log h3 {
  margin-bottom: 8px;
}

.empty-log p {
  margin: 0;
  color: var(--muted);
}

.labs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 880px;
}

.labs-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 32px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}

.labs-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.labs-list h2 {
  font-size: 1.375rem;
  max-width: none;
}

.labs-list p {
  margin: 8px 0 0;
  color: var(--muted);
}

.labs-list .status {
  font-size: 0.875rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- The memo ---------- */

.memo {
  padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 112px);
}

.memo-head {
  max-width: 720px;
  margin: 0 auto 48px;
}

.memo-meta {
  margin: 0 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.memo-meta div {
  display: flex;
  gap: 6px;
}

.memo-meta dt::after {
  content: ":";
}

.memo-meta dd {
  margin: 0;
  color: var(--ink);
}

.memo-head h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  max-width: 13ch;
}

.memo-head .lede {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  color: var(--ink);
}

.memo-body {
  max-width: 720px;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.7;
  font-optical-sizing: auto;
}

.memo-body p {
  max-width: 68ch;
}

.memo-body h2 {
  font-family: var(--sans);
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  margin: 56px 0 16px;
  max-width: none;
}

.memo-body ol,
.memo-body ul {
  padding-left: 1.3em;
}

.memo-body li {
  margin-bottom: 0.6em;
}

.memo-body .claim {
  margin: 40px 0;
  padding: 24px 28px;
  border-left: 4px solid var(--pen);
  background: var(--sheet);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.45;
}

.memo-body .claim p {
  margin: 0;
}

.memo-body .label {
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--muted);
}

.memo-body table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sans);
  font-size: 0.9375rem;
  line-height: 1.45;
  margin: 24px 0 32px;
}

.memo-body th,
.memo-body td,
.data-table th,
.data-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--rule);
}

.memo-body th,
.data-table th {
  border-bottom: 2px solid var(--ink);
  font-weight: 700;
}

.memo-sign {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 1rem;
}

.memo-sign p {
  margin: 0;
}

.memo-sign .name {
  font-weight: 700;
}

.footnotes {
  margin-top: 40px;
  font-family: var(--sans);
  font-size: 0.875rem;
  color: var(--muted);
}

.footnotes ol {
  padding-left: 1.2em;
}

.table-wrap {
  max-width: 880px;
  overflow-x: auto;
}

.data-table {
  margin-top: 0;
}

/* ---------- Archive banner (used on /plan/) ---------- */

.archive-banner {
  position: relative;
  z-index: 60;
  background: #ffe9a8;
  color: #14202b;
  font-family: "Archivo", Arial, sans-serif;
  font-size: 0.9375rem;
  line-height: 1.45;
  padding: 12px 16px;
  text-align: center;
}

.archive-banner a {
  color: #14202b;
  font-weight: 700;
}

/* ---------- Join dialog ---------- */

.join-dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 1px solid var(--rule-strong);
  border-radius: 6px;
  background: var(--sheet);
  color: var(--ink);
}

.join-dialog::backdrop {
  background: rgba(15, 21, 27, 0.55);
}

.join-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
  font-size: 0.9375rem;
}

.join-form h2 {
  font-size: 1.625rem;
  padding-right: 32px;
}

.join-sub {
  margin: 0;
  color: var(--muted);
}

.join-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  border-radius: var(--radius);
}

.join-close:hover {
  color: var(--ink);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.join-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
}

.join-form input,
.join-form select,
.join-form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
}

.join-form input:focus,
.join-form select:focus,
.join-form textarea:focus {
  outline: 2px solid var(--pen);
  outline-offset: 0;
  border-color: var(--pen);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.join-status {
  margin: 0;
  font-size: 0.875rem;
}

.join-status.is-error {
  color: #b42318;
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .hero-grid,
  .gap-grid,
  .pilot-grid,
  .founder {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .steps li,
  .steps li + li {
    padding: 20px 0 6px;
    border-left: none;
  }

  .steps li + li {
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 16px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 12px 0;
    border-bottom: 1px solid var(--rule);
  }

  .nav-menu .button {
    margin-top: 12px;
    min-height: 44px;
    border-bottom: none;
  }

  .verticals,
  .commitments,
  .field-grid,
  .memo-callout {
    grid-template-columns: minmax(0, 1fr);
  }

  .wo-row,
  .wo-sign {
    grid-template-columns: 7.25em minmax(0, 1fr);
  }

  .wo-row dt,
  .wo-sign dt {
    padding-left: 12px;
  }

  .wo-row dd {
    padding-right: 12px;
  }

  .bar-row {
    grid-template-columns: minmax(0, 1fr) 3.5em;
  }

  .bar-row .bar-label {
    grid-column: 1 / -1;
  }

  .bar-track {
    grid-column: 1;
  }

  .record-list li,
  .founder-facts div,
  .timeline li {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .labs-list li {
    grid-template-columns: minmax(0, 1fr);
  }

  .memo-body {
    font-size: 1.125rem;
  }

  .memo-body table {
    display: block;
    overflow-x: auto;
  }
}

@media print {
  :root {
    --paper: #ffffff;
    --sheet: #ffffff;
    --ink: #000000;
    --muted: #333333;
    --pen: #1f3aa8;
  }

  .site-header,
  .site-footer,
  .join-dialog,
  .actions,
  .skip-link {
    display: none !important;
  }

  .memo {
    padding: 0;
  }

  .memo-body {
    font-size: 11pt;
  }

  .memo-body .claim {
    border: 1px solid #000;
    border-left-width: 4px;
  }

  a {
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
