:root {
  --mz-accent: #168846;
  --mz-accent-dark: #0d5d30;
  --mz-canvas: #fff;
  --mz-figure: #f2f2f0;
  --mz-ink: #181817;
  --mz-line: #deded9;
  --mz-muted: #6c6c67;
  --mz-reading: 42rem;
  --mz-wide: 68rem;
}

html {
  background: var(--mz-canvas);
  color: var(--mz-ink);
  scroll-behavior: smooth;
}

body {
  background: var(--mz-canvas);
  color: var(--mz-ink);
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

::selection {
  background: var(--mz-ink);
  color: var(--mz-canvas);
}

a {
  border-bottom: 0;
  text-decoration: underline;
  text-decoration-color: #a3a39d;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-color: currentcolor;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mz-ink);
  outline-offset: 4px;
}

.site-header {
  align-items: center;
  border-bottom: 1px solid var(--mz-line);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 1.25rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 90rem;
  padding: 1.15rem clamp(1.25rem, 4vw, 3rem);
}

.site-header a {
  text-decoration: none;
}

.site-header strong {
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: flex-end;
}

.editorial-shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

.cs-head {
  margin: 0 auto;
  max-width: 64rem;
  padding: clamp(5rem, 12vw, 10rem) 1.25rem 0;
  text-align: center;
}

.cs-head h1 {
  font-size: var(--type-display);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin: 0;
  text-wrap: balance;
}

.byline {
  align-items: center;
  display: flex;
  font-size: 0.84rem;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 2rem;
}

.gist {
  margin: 0 auto;
  max-width: 40rem;
  padding: 2.25rem 1.25rem clamp(4rem, 9vw, 7rem);
  text-align: center;
}

.gist p {
  color: #4c4c48;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  letter-spacing: -0.02em;
  line-height: 1.45;
  margin: 0;
  text-indent: 0;
  text-wrap: balance;
}

.gist p + p {
  margin-top: 1.4rem;
}

.gist strong {
  color: var(--mz-ink);
  font-weight: 500;
}

.gate-locked .cs-head {
  padding-bottom: 0;
}

.gate-locked .gate-wall {
  margin: 0 auto;
  max-width: var(--mz-reading);
  padding: 2.25rem 1.25rem clamp(5rem, 12vw, 9rem);
}

.hero {
  margin: 0 auto;
  max-width: var(--mz-wide);
  padding: 0 1.25rem;
}

.hero .frame {
  background: var(--mz-figure);
  border-radius: 0;
  display: block;
  height: auto;
  width: 100%;
}

.hero figcaption,
.diagram figcaption {
  color: var(--mz-muted);
  font-size: 0.77rem;
  line-height: 1.45;
  margin: 0.8rem auto 0;
  max-width: var(--mz-reading);
}

.statbar {
  border-bottom: 1px solid var(--mz-line);
  border-top: 1px solid var(--mz-line);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  max-width: var(--mz-reading);
  padding: 0 1.25rem;
}

.statbar div {
  display: block;
  padding: 1.3rem 0;
}

.statbar div:nth-child(odd) {
  border-right: 1px solid var(--mz-line);
  padding-right: 1.3rem;
}

.statbar div:nth-child(even) {
  padding-left: 1.3rem;
}

.statbar div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--mz-line);
}

.statbar .dim {
  color: var(--mz-muted);
  display: block;
  font-size: 0.75rem;
}

.statbar .stat {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-top: 0.3rem;
}

.block {
  border: 0;
  display: block;
  margin: 0 auto;
  max-width: var(--mz-reading);
  padding: clamp(4.5rem, 9vw, 7rem) 1.25rem 0;
}

.block + .block {
  padding-top: clamp(4.5rem, 9vw, 7rem);
}

.block h2 {
  font-size: var(--type-section);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0 0 0.4em;
  text-wrap: balance;
}

.tight {
  max-width: none;
}

.tight p,
.tight li {
  font-size: clamp(1.08rem, 1.6vw, 1.2rem);
  letter-spacing: -0.012em;
  line-height: 1.66;
}

.tight > * + * {
  margin-top: 1.15em;
}

.tight ul {
  gap: 0.45rem;
  margin: 1.65rem 0;
}

.tight li {
  padding-inline-start: 1.25rem;
}

.tight blockquote {
  border-left: 0.28rem solid var(--mz-ink);
  color: var(--mz-ink);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  letter-spacing: -0.04em;
  line-height: 1.2;
  margin: 2.25em 0;
  padding-inline-start: 1.25rem;
}

.evidence-interlude {
  background: var(--mz-accent);
  color: #082819;
  margin: clamp(5rem, 12vw, 8rem) calc(50% - 50vw);
  padding: clamp(5rem, 16vw, 11rem) 1.25rem;
  text-align: center;
  width: 100vw;
}

.evidence-interlude p {
  font-size: var(--type-feature);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.92;
  margin: 0 auto;
  max-width: 74rem;
  text-wrap: balance;
}

.evidence-interlude small {
  display: block;
  font-size: 0.78rem;
  margin-top: 2.5rem;
}

.diagram {
  background: var(--mz-figure);
  border: 0;
  margin: clamp(4rem, 9vw, 7rem) auto 0;
  max-width: var(--mz-wide);
  overflow-x: auto;
  padding: clamp(1.5rem, 5vw, 4rem);
  width: calc(100% - 2.5rem);
}

.diagram-heading {
  color: var(--mz-muted);
  font-size: 0.78rem;
  margin: 0 0 clamp(2.5rem, 6vw, 5rem);
}

.figure-takeaway {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin: clamp(1.75rem, 4vw, 2.5rem) 0 0;
  text-wrap: balance;
}

.split-figure {
  display: grid;
  gap: 1px;
  grid-template-columns: 1fr 1fr;
}

.split-pane {
  background: var(--mz-canvas);
  min-width: 0;
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.split-pane > span {
  color: var(--mz-muted);
  display: block;
  font-size: 0.72rem;
  margin-bottom: 1.25rem;
}

.split-pane > small {
  color: var(--mz-muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 1.1rem;
}

.model-building {
  background: var(--mz-figure);
  display: grid;
  gap: 1px;
  position: relative;
}

.model-building::before {
  background: var(--mz-canvas);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  content: "";
  display: block;
  height: 2.4rem;
}

.model-building b {
  background: var(--mz-canvas);
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.95rem 1rem;
}

.model-pages {
  display: grid;
  gap: 0.55rem;
}

.model-pages div,
.model-pages i {
  background: var(--mz-figure);
  color: var(--mz-ink);
  display: grid;
  font-size: 0.86rem;
  font-style: normal;
  font-weight: 500;
  gap: 0.15rem;
  padding: 0.8rem 1rem;
}

.model-pages small {
  color: var(--mz-muted);
  font-size: 0.68rem;
  font-weight: 400;
}

.job-sketch {
  display: grid;
  gap: 0.4rem;
}

.job-zone,
.job-building {
  background: var(--mz-figure);
  min-height: 2.6rem;
}

.job-zone {
  align-items: center;
  display: flex;
  font-size: 0.8rem;
  padding: 0 0.8rem;
}

.job-zone.is-alert {
  background: var(--mz-canvas);
  box-shadow: inset 3px 0 0 var(--mz-accent);
  font-weight: 500;
}

.job-grid {
  display: grid;
  gap: 0.35rem;
  grid-template-columns: repeat(6, 1fr);
}

.job-building {
  min-height: 2.1rem;
}

.job-building.is-on {
  background: var(--mz-accent);
}

.share-groups {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4rem);
}

.share-kicker {
  color: var(--mz-muted);
  font-size: 0.72rem;
  margin: 0 0 1rem;
}

.share-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 12rem) 1fr auto;
  padding: 0.65rem 0;
}

.share-row + .share-row {
  border-top: 1px solid var(--mz-line);
}

.share-row span {
  font-size: 0.86rem;
  letter-spacing: -0.015em;
}

.share-row b {
  font-size: 0.92rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  min-width: 5.5rem;
  text-align: end;
}

.share-track {
  background: #e6e6e2;
  height: 0.7rem;
  min-width: 0;
}

.share-track i {
  background: var(--mz-ink);
  display: block;
  height: 100%;
  max-width: 100%;
  min-width: 8px;
}

.share-track i.is-accent {
  background: var(--mz-accent);
}

.share-track i.is-empty {
  background: transparent;
  border: 1px dashed var(--mz-muted);
  box-sizing: border-box;
  min-width: 0.7rem;
  width: 0.7rem;
}

.claim-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.claim-col {
  background: var(--mz-canvas);
  display: flex;
  flex-direction: column;
  min-height: 20rem;
  padding: clamp(1.15rem, 3vw, 1.75rem);
}

.claim-col span {
  color: var(--mz-muted);
  font-size: 0.72rem;
}

.claim-col strong {
  display: block;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 0.92;
  margin-top: 1.4rem;
}

.claim-col strong.is-empty {
  color: var(--mz-muted);
}

.claim-col b {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  margin-top: auto;
  padding-top: 2.5rem;
}

.claim-col small {
  color: var(--mz-muted);
  display: block;
  font-size: 0.72rem;
  line-height: 1.4;
  margin-top: 0.35rem;
}

.extent-list {
  display: grid;
}

.extent-row {
  display: grid;
  gap: 0.45rem;
  padding: 1.1rem 0;
}

.extent-row + .extent-row {
  border-top: 1px solid var(--mz-line);
}

.extent-row span {
  font-size: 0.88rem;
}

.extent-row small {
  color: var(--mz-muted);
  font-size: 0.72rem;
}

.extent-row b {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  justify-self: end;
}

.extent-copy {
  align-items: baseline;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr auto;
}

.extent-track {
  background: #e6e6e2;
  height: 0.85rem;
  position: relative;
}

.extent-track i {
  background: var(--mz-ink);
  display: block;
  height: 100%;
}

.extent-track i.is-accent {
  background: var(--mz-accent);
}

.extent-track i.is-range {
  background: rgba(24, 24, 23, 0.16);
  border: 0;
  box-sizing: border-box;
  outline: 1px dashed var(--mz-muted);
  outline-offset: -1px;
  position: absolute;
  top: 0;
}

.extent-track::after {
  background: var(--mz-ink);
  content: "";
  height: 1.15rem;
  left: var(--mark, 5%);
  position: absolute;
  top: -0.15rem;
  width: 1px;
}

.decision-flow {
  align-items: stretch;
  display: grid;
  gap: 1px;
  grid-template-columns: 1.2fr 0.7fr 1.1fr 1fr;
}

.decision-col {
  background: var(--mz-canvas);
  display: grid;
  gap: 1px;
  grid-auto-rows: 1fr;
}

.decision-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 7.5rem;
  padding: 1.15rem 1.25rem;
}

.decision-card.is-fill {
  background: var(--mz-accent);
  color: #082819;
}

.decision-card b {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.decision-card span {
  color: inherit;
  display: block;
  font-size: 0.74rem;
  margin-top: 0.4rem;
  opacity: 0.72;
}

.time-chart {
  display: grid;
  gap: 1.15rem;
}

.time-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(8rem, 13rem) 1fr;
}

.time-row span {
  font-size: 0.86rem;
}

.time-row small {
  color: var(--mz-muted);
  display: block;
  font-size: 0.7rem;
  margin-top: 0.2rem;
}

.time-lane {
  background: #e6e6e2;
  height: 1.35rem;
  position: relative;
}

.time-lane i {
  background: var(--mz-ink);
  display: block;
  height: 100%;
  left: var(--from);
  position: absolute;
  width: var(--span);
}

.time-lane i.is-accent {
  background: var(--mz-accent);
}

.time-lane i.is-open {
  background: linear-gradient(90deg, var(--mz-ink) 0%, transparent 100%);
}

.time-axis {
  color: var(--mz-muted);
  display: flex;
  font-size: 0.68rem;
  justify-content: space-between;
  margin-left: calc(13rem + 1rem);
  margin-top: 0.35rem;
}

.usage-evidence {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.usage-stat {
  border-inline-start: 1px solid var(--mz-line);
  display: flex;
  flex-direction: column;
  min-height: 18rem;
  padding: 0 clamp(1rem, 3vw, 2rem);
}

.usage-stat:first-child {
  border-inline-start: 0;
  padding-inline-start: 0;
}

.usage-stat:last-child {
  padding-inline-end: 0;
}

.usage-stat strong {
  font-size: clamp(3.5rem, 8vw, 7rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

.usage-stat--accent strong {
  color: var(--mz-accent-dark);
}

.usage-stat span {
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: auto;
  max-width: 12rem;
}

.usage-stat small {
  color: var(--mz-muted);
  font-size: 0.72rem;
  margin-top: 0.5rem;
}

.diagram figcaption {
  background: var(--mz-canvas);
  margin: clamp(1.5rem, 4vw, 3rem) calc(clamp(1.5rem, 5vw, 4rem) * -1)
    calc(clamp(1.5rem, 5vw, 4rem) * -1);
  max-width: none;
  padding: 0.8rem
    max(clamp(1.5rem, 5vw, 4rem), calc((100% - var(--mz-reading)) / 2));
}

.diagram blockquote {
  font-size: inherit;
}

.results {
  border-top: 1px solid var(--mz-line);
  gap: 0;
}

.results div {
  align-items: baseline;
  border-bottom: 1px solid var(--mz-line);
  gap: 1.5rem;
  padding: 1rem 0;
}

.results .num {
  color: var(--mz-accent-dark);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.next {
  border-top: 1px solid var(--mz-line);
  margin: clamp(5rem, 10vw, 8rem) auto 0;
  max-width: var(--mz-reading);
  padding: 2rem 1.25rem clamp(5rem, 10vw, 8rem);
}

.page-footer {
  align-items: baseline;
  border-top: 1px solid var(--mz-line);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8rem;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 90rem;
  padding: 2rem clamp(1.25rem, 4vw, 3rem);
}

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

.page-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

@media (max-width: 45rem) {
  .cs-head,
  .gist {
    text-align: left;
  }

  .byline {
    justify-content: flex-start;
  }

  .gist p {
    text-wrap: pretty;
  }

  .statbar {
    grid-template-columns: 1fr;
  }

  .statbar div:nth-child(odd) {
    border-right: 0;
    padding-right: 0;
  }

  .statbar div:nth-child(even) {
    padding-left: 0;
  }

  .statbar div:not(:last-child) {
    border-bottom: 1px solid var(--mz-line);
  }

  .results div {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .usage-evidence {
    grid-template-columns: 1fr;
  }

  .usage-stat {
    border-inline-start: 0;
    border-top: 1px solid var(--mz-line);
    min-height: 13rem;
    padding: 1.5rem 0;
  }

  .usage-stat:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .split-figure,
  .claim-grid,
  .decision-flow {
    grid-template-columns: 1fr;
  }

  .share-row,
  .extent-copy,
  .time-row {
    gap: 0.4rem;
    grid-template-columns: 1fr;
  }

  .share-row b,
  .extent-row b {
    justify-self: start;
    min-width: 0;
    text-align: start;
  }

  .time-axis {
    margin-left: 0;
  }

  .job-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
