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

:root {
  --paper: #f3efe3;
  --paper-deep: #e5ddca;
  --ink: #11100e;
  --ink-soft: #4d473f;
  --muted: #777064;
  --red: #c9181f;
  --red-dark: #7f1116;
  --charcoal: #191817;
  --steel: #2b3642;
  --olive: #4b503c;
  --rule: rgba(17, 16, 14, 0.18);
  --rule-strong: rgba(17, 16, 14, 0.72);
  --white: #fffaf0;
  --max: 1180px;
  --pad: 28px;
  --radius: 6px;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(17,16,14,0.035) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(rgba(17,16,14,0.03) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--paper);
  font-family: "Archivo", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

html,
body {
  max-width: 100%;
}

body.nav-open {
  overflow: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

.eyebrow a,
.inline-title-link,
.book-title-link,
.footer-title-link,
.book-cover-link,
.book-cover-frame-link {
  color: inherit;
}

.book-title-link,
.footer-title-link,
.book-cover-link,
.book-cover-frame-link {
  text-decoration: none;
}

.eyebrow a:hover,
.inline-title-link:hover,
.book-title-link:hover,
.footer-title-link:hover {
  color: var(--red);
}

p, h1, h2, h3, h4 {
  margin: 0;
}

button, input, select, textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-140%);
  background: var(--red);
  color: var(--white);
  padding: 10px 14px;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px var(--pad);
  border-bottom: 1px solid var(--rule-strong);
  background: rgba(243, 239, 227, 0.94);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 900;
}

.brand-sigil {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  flex: 0 0 auto;
  background: var(--ink);
  color: var(--paper);
  border-bottom: 6px solid var(--red);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.brand-word {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--rule);
  background: rgba(255, 250, 240, 0.72);
}

.site-nav .nav-cta {
  margin-left: 8px;
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta[aria-current="page"] {
  color: var(--white);
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.nav-toggle {
  display: none;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--rule-strong);
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.hero,
.page-hero,
.section,
.strip-grid,
.site-footer {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 48px;
  align-items: center;
  min-height: 660px;
  padding-top: 72px;
  padding-bottom: 56px;
}

.hero-home {
  border-bottom: 1px solid var(--rule-strong);
}

.book-hero {
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: center;
  min-height: auto;
}

.book-page-hero {
  grid-template-columns: minmax(260px, 390px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule-strong);
}

.book-cover-frame {
  margin: 0;
}

.book-cover-frame img {
  width: min(100%, 370px);
  height: auto;
  margin: 0 auto;
  aspect-ratio: 960 / 1422;
  object-fit: cover;
  border: 1px solid var(--ink);
  box-shadow: 12px 12px 0 var(--red);
}

.book-cover-frame figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}

.book-page-copy h1 {
  max-width: 740px;
  font-size: 72px;
}

.book-subtitle {
  max-width: 720px;
  margin-top: 18px;
  color: var(--ink);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  line-height: 1.22;
}

.hero-copy {
  max-width: 810px;
}

.eyebrow,
.case-label,
.case-meta,
.field-card-top,
.audit-stamp,
.metric,
.form-note,
.site-footer,
.artifact-table strong,
.method-number {
  font-family: "IBM Plex Mono", monospace;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: 86px;
}

h2 {
  font-size: 48px;
}

h3 {
  font-size: 28px;
}

.lede {
  max-width: 740px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 22px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 0;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.button-primary {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.button-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

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

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

.field-card {
  max-width: 100%;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 250, 240, 0.76);
  padding: 22px;
  box-shadow: 10px 10px 0 var(--ink);
}

.field-card-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.field-card-top span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.quote {
  margin: 28px 0;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 30px;
  line-height: 1.24;
}

.audit-stamp {
  display: inline-flex;
  max-width: 100%;
  padding: 9px 10px;
  color: var(--white);
  background: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule-strong);
  padding-top: 0;
  padding-bottom: 0;
}

.strip-grid > div {
  min-height: 180px;
  padding: 28px;
  border-left: 1px solid var(--rule-strong);
}

.strip-grid > div:first-child {
  border-left: 0;
}

.metric {
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.strip-grid p {
  color: var(--ink-soft);
}

.section,
.page-hero {
  padding-top: 88px;
  padding-bottom: 88px;
}

.page-hero {
  border-bottom: 1px solid var(--rule-strong);
}

.page-hero h1 {
  max-width: 1030px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1fr);
  gap: 54px;
  border-bottom: 1px solid var(--rule-strong);
}

.copy-stack {
  display: grid;
  gap: 18px;
}

.copy-stack p,
.method-detail p,
.use-case p,
.note-card p,
.final-cta p,
.case-card p,
.artifact-table span,
.check-list {
  color: var(--ink-soft);
}

.copy-stack p,
.method-detail p,
.use-case p,
.note-card p {
  font-size: 18px;
}

.dark-panel {
  width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad)));
  margin-top: 56px;
  margin-bottom: 56px;
  padding: 52px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(201, 24, 31, 0.16), transparent 34%),
    var(--charcoal);
  border: 1px solid var(--ink);
}

.dark-panel .eyebrow,
.dark-panel .case-label,
.dark-panel .method-number {
  color: #ff6c73;
}

.dark-panel p,
.dark-panel .case-card p,
.dark-panel .artifact-table span,
.dark-panel .check-list {
  color: rgba(255, 250, 240, 0.76);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 840px;
  margin-bottom: 36px;
}

.section-heading > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-soft);
}

.method-grid,
.case-grid,
.mode-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.method-grid article,
.case-card,
.note-card {
  border: 1px solid var(--rule-strong);
  background: rgba(255, 250, 240, 0.62);
  padding: 24px;
}

.dark-panel .method-grid article {
  border-color: rgba(255, 250, 240, 0.24);
  background: rgba(255, 250, 240, 0.045);
}

.method-grid span {
  display: block;
  margin-bottom: 30px;
  color: var(--red);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
}

.method-grid h3,
.case-card h3,
.note-card h2 {
  margin-bottom: 14px;
}

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

.case-card a {
  display: inline-flex;
  margin-top: 22px;
  color: var(--red);
  font-weight: 900;
}

.case-label,
.case-meta {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

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

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

.founder-profile {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 250, 240, 0.76);
  box-shadow: 8px 8px 0 rgba(17, 16, 14, 0.08);
}

.founder-image-link {
  display: block;
  width: 164px;
  max-width: 100%;
}

.founder-image-link img {
  width: 100%;
  height: 164px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
  background: var(--paper-deep);
  filter: grayscale(1) contrast(1.05);
}

.founder-name-link {
  display: inline-flex;
  color: var(--ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.founder-profile .case-label {
  margin-top: 8px;
}

.founder-profile p:not(.case-label) {
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.58;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.founder-tags span {
  border: 1px solid var(--rule);
  padding: 6px 8px;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.partner-note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
  text-align: center;
}

.book-band {
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

.book-cover {
  display: flex;
  min-height: 330px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  color: var(--paper);
  background:
    linear-gradient(180deg, transparent 0 68%, var(--red) 68% 100%),
    var(--ink);
  border: 1px solid var(--ink);
  box-shadow: 10px 10px 0 var(--red);
}

.book-cover-link:hover {
  transform: translate(-2px, -2px);
}

.book-cover-frame-link {
  display: block;
}

.book-cover span {
  display: block;
  font-size: 48px;
  font-weight: 900;
  line-height: 0.92;
}

.book-cover small {
  color: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
}

.cover-large {
  min-height: 540px;
}

.cover-large span {
  font-size: 64px;
}

.final-cta {
  display: grid;
  justify-items: start;
  gap: 20px;
  border-top: 1px solid var(--rule-strong);
}

.final-cta p {
  max-width: 680px;
  font-size: 19px;
}

.timeline-method {
  display: grid;
  gap: 0;
}

.method-detail {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 32px;
  padding: 42px 0;
  border-bottom: 1px solid var(--rule-strong);
}

.method-detail:first-child {
  padding-top: 0;
}

.method-detail h2 {
  max-width: 820px;
  margin-bottom: 16px;
}

.method-number {
  color: var(--red);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.artifact-table {
  display: grid;
  margin-top: 26px;
  border-top: 1px solid currentColor;
}

.artifact-table div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid currentColor;
}

.artifact-table strong {
  color: inherit;
  font-size: 13px;
  text-transform: uppercase;
}

.artifact-wide {
  margin-top: 0;
}

.mode-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 26px;
}

.mode-grid div {
  padding: 20px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 250, 240, 0.52);
}

.mode-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--red);
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.case-ledger {
  display: grid;
  gap: 0;
}

.use-case {
  padding: 42px 0;
  border-bottom: 1px solid var(--rule-strong);
}

.use-case:first-child {
  padding-top: 0;
}

.use-case h2 {
  max-width: 900px;
  margin: 12px 0 26px;
}

.case-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.case-columns p {
  border-left: 4px solid var(--red);
  padding-left: 16px;
}

.contents-grid .case-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.founder-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

.founder-panel img {
  width: 260px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid rgba(255, 250, 240, 0.28);
  filter: grayscale(1) contrast(1.08);
}

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

.note-card {
  display: grid;
  gap: 14px;
  min-height: 280px;
}

.red-note {
  color: var(--white);
  background: var(--red);
}

.red-note .case-label,
.red-note p {
  color: rgba(255, 250, 240, 0.86);
}

.audit-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.audit-layout .field-card {
  position: sticky;
  top: 96px;
}

.audit-form {
  display: grid;
  min-width: 0;
  gap: 18px;
  border: 1px solid var(--rule-strong);
  background: rgba(255, 250, 240, 0.76);
  padding: 28px;
}

.form-row {
  display: grid;
  gap: 18px;
}

.form-row.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--rule-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(201, 24, 31, 0.35);
  outline-offset: 2px;
}

.checkbox-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-weight: 600;
}

.checkbox-line input {
  width: 18px;
  min-height: 18px;
  margin-top: 3px;
}

.form-submit {
  justify-self: start;
}

.form-note {
  min-height: 24px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
}

.form-note.success {
  color: var(--olive);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding-top: 38px;
  padding-bottom: 38px;
  border-top: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  font-size: 13px;
}

.site-footer strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

  @media (max-width: 980px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 38px;
  }

  .hero,
  .book-hero,
  .split-section,
  .audit-layout,
  .founder-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .book-page-hero {
    gap: 42px;
  }

  .book-page-copy h1 {
    font-size: 58px;
  }

  .book-subtitle {
    font-size: 25px;
  }

  .strip-grid,
  .method-grid,
  .case-grid,
  .contents-grid .case-grid,
  .founder-proof-grid,
  .case-columns,
  .mode-grid {
    grid-template-columns: 1fr 1fr;
  }

  .audit-layout .field-card {
    position: static;
  }
}

@media (max-width: 760px) {
  :root {
    --pad: 18px;
  }

  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .site-header {
    align-items: flex-start;
    width: 100vw;
    max-width: 100vw;
  }

  .brand-word {
    max-width: 46vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .site-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-bottom: 1px solid var(--rule-strong);
    background: var(--paper);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a,
  .site-nav .nav-cta {
    margin-left: 0;
    min-height: 46px;
    justify-content: center;
  }

  h1 {
    font-size: 38px;
    width: calc(100vw - 2 * var(--pad));
    max-width: calc(100vw - 2 * var(--pad));
    overflow-wrap: break-word;
  }

  .book-page-copy h1 {
    width: calc(100vw - 2 * var(--pad));
    max-width: calc(100vw - 2 * var(--pad));
    font-size: 42px;
  }

  .book-subtitle {
    width: calc(100vw - 2 * var(--pad));
    max-width: calc(100vw - 2 * var(--pad));
    font-size: 21px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  .lede {
    width: calc(100vw - 2 * var(--pad));
    font-size: 17px;
    max-width: calc(100vw - 2 * var(--pad));
  }

  .hero-actions,
  .button,
  .form-submit {
    width: 100%;
  }

  .button {
    min-height: 52px;
  }

  .field-card {
    box-shadow: 6px 6px 0 var(--ink);
  }

  .hero,
  .page-hero,
  .section,
  .strip-grid,
  .site-footer {
    width: 100vw;
    max-width: 100vw;
    overflow-x: clip;
  }

  .field-card,
  .audit-form,
  .hero-copy,
  .copy-stack {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .audit-layout {
    width: 100vw;
    max-width: 100vw;
  }

  .strip-grid,
  .method-grid,
  .case-grid,
  .contents-grid .case-grid,
  .founder-proof-grid,
  .founder-profile,
  .case-columns,
  .mode-grid,
  .notes-grid,
  .book-band,
  .form-row.two {
    grid-template-columns: 1fr;
  }

  .strip-grid > div {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--rule-strong);
  }

  .strip-grid > div:first-child {
    border-top: 0;
  }

  .founder-profile {
    gap: 18px;
    padding: 20px;
  }

  .founder-image-link {
    width: 150px;
  }

  .founder-image-link img {
    height: 150px;
  }

  .dark-panel {
    width: min(calc(100% - 2 * var(--pad)), calc(var(--max) - 2 * var(--pad)));
    padding: 26px;
  }

  .method-detail {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .artifact-table div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .book-cover,
  .cover-large {
    min-height: 380px;
  }

  .book-cover-frame img {
    width: min(78vw, 300px);
    box-shadow: 8px 8px 0 var(--red);
  }

  .book-cover span,
  .cover-large span {
    font-size: 44px;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
