:root {
  --paper: #efe7d2;
  --paper-soft: #f7f1de;
  --paper-deep: #e1d5b8;
  --ink: #17150f;
  --muted: #625b4e;
  --faint: #8d8575;
  --coral: #ef6c5b;
  --coral-deep: #d95a49;
  --mustard: #e7b848;
  --pass: #39754c;
  --line: rgba(23, 21, 15, 0.22);
  --line-soft: rgba(23, 21, 15, 0.11);
  --shadow: 0 14px 30px rgba(65, 43, 16, 0.08);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", "Liberation Mono", monospace;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 0;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--coral-deep);
  outline-offset: 4px;
}

button {
  font: inherit;
}

code {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 0.65rem 0.85rem;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
  color: var(--ink);
  font-weight: 700;
}

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

.masthead {
  border-bottom: 1px solid var(--line);
}

.masthead-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
  min-height: 82px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  width: max-content;
  max-width: 100%;
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font: 800 0.62rem/1 var(--mono);
  letter-spacing: 0.08em;
}

.wordmark strong,
.wordmark small {
  display: block;
}

.wordmark strong {
  font: 700 1.2rem/1 var(--serif);
  letter-spacing: -0.02em;
}

.wordmark small {
  margin-top: 0.24rem;
  color: var(--faint);
  font: 700 0.56rem/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  font: 700 0.69rem/1.2 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a {
  color: var(--muted);
}

.masthead-link {
  justify-self: end;
  padding: 0.48rem 0.66rem;
  border: 1px solid var(--line);
  color: var(--ink);
  font: 700 0.68rem/1 var(--mono);
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.masthead-link:hover {
  border-color: var(--ink);
  background: var(--paper-deep);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: clamp(2rem, 7vw, 6.4rem);
  padding-top: clamp(3.5rem, 8vw, 7.3rem);
  padding-bottom: clamp(3.75rem, 8vw, 7.4rem);
}

.hero-copy {
  min-width: 0;
  border-left: 4px solid var(--coral);
  padding-left: clamp(1rem, 3vw, 2rem);
}

.eyebrow,
.card-index,
.output-number,
.command-label {
  margin: 0;
  color: var(--faint);
  font: 700 0.67rem/1.35 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  /* A display headline must never break inside a word at high browser zoom. */
  max-width: 13ch;
  margin: 0.6rem 0 1.25rem;
  font: 700 clamp(2.9rem, 6.7vw, 6.3rem) / 0.98 var(--serif);
  letter-spacing: -0.06em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

.hero-lede {
  max-width: 59ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.19rem);
}

.hero-actions,
.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.68rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  cursor: pointer;
  font: 700 0.72rem/1.15 var(--mono);
  letter-spacing: 0.035em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

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

.button-primary:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
  text-decoration: none;
}

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

.button-quiet:hover {
  background: var(--paper-deep);
  text-decoration: none;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 2.3rem 0 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.promise-strip div {
  min-width: 0;
  padding: 0.85rem 0.8rem 0.8rem 0;
  border-right: 1px solid var(--line-soft);
}

.promise-strip div + div {
  padding-left: 0.8rem;
}

.promise-strip div:last-child {
  border-right: 0;
}

.promise-strip dt {
  color: var(--faint);
  font: 700 0.6rem/1.2 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.promise-strip dd {
  margin: 0.38rem 0 0;
  font: 700 clamp(1rem, 2.5vw, 1.34rem) / 1 var(--serif);
}

.verdict-ledger {
  align-self: end;
  min-width: 0;
  padding: clamp(1.25rem, 3.2vw, 2rem);
  border: 1px solid var(--line);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.verdict-ledger h2 {
  margin: 0.62rem 0 1.45rem;
  font: 700 clamp(1.65rem, 3vw, 2.35rem) / 1 var(--serif);
  letter-spacing: -0.04em;
}

.verdict-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.verdict-list div {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.verdict-list dt {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  font: 800 0.71rem/1.2 var(--mono);
  letter-spacing: 0.05em;
}

.verdict-list dd {
  margin: 0.35rem 0 0 1.15rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.verdict-dot {
  width: 0.54rem;
  height: 0.54rem;
  border-radius: 50%;
}

.verdict-dot.block {
  background: var(--coral-deep);
}

.verdict-dot.review {
  background: var(--mustard);
}

.verdict-dot.pass {
  background: var(--pass);
}

.ledger-note {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.ledger-note strong {
  color: var(--ink);
}

.evidence-section,
.preview-section {
  padding: clamp(3.75rem, 7vw, 6.75rem) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.7fr);
  gap: 2rem;
  align-items: end;
  margin-bottom: 1.55rem;
}

.section-heading h2,
.preview-copy h2,
.run-copy h2 {
  max-width: 18ch;
  margin: 0.55rem 0 0;
  font: 700 clamp(2rem, 4.5vw, 3.7rem) / 0.98 var(--serif);
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.section-heading > p,
.preview-copy > p,
.run-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-heading-tight {
  margin-bottom: 1.8rem;
}

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

.evidence-card {
  display: flex;
  min-width: 0;
  min-height: 17.4rem;
  flex-direction: column;
  padding: 1.25rem;
  border: 1px solid var(--line);
  background: var(--paper);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.evidence-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow);
  text-decoration: none;
  transform: translateY(-3px);
}

.evidence-card-block {
  border-top: 5px solid var(--coral);
}

.evidence-card-pass {
  border-top: 5px solid var(--pass);
}

.evidence-card-source {
  border-top: 5px solid var(--mustard);
}

.evidence-card h3,
.output-card h3 {
  margin: 1.05rem 0 0;
  font: 700 clamp(1.45rem, 2.8vw, 2rem) / 1 var(--serif);
  letter-spacing: -0.035em;
}

.evidence-card p {
  margin: 0.8rem 0 1.2rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence-card code {
  font-size: 0.88em;
}

.artifact-path {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: auto;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.83rem;
  color: var(--ink);
  font: 700 0.64rem/1.45 var(--mono);
  overflow-wrap: anywhere;
}

.artifact-path b {
  color: var(--coral-deep);
  font-size: 1.15rem;
}

.snapshot-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  max-width: 77ch;
  margin-top: 1.3rem;
  border-left: 3px solid var(--mustard);
  padding: 0.65rem 0 0.65rem 0.85rem;
  color: var(--muted);
}

.snapshot-note > span {
  color: var(--ink);
}

.snapshot-note p {
  margin: 0;
  font-size: 0.88rem;
}

.outputs-section,
.run-section {
  padding-top: clamp(3.75rem, 7vw, 6.75rem);
  padding-bottom: clamp(3.75rem, 7vw, 6.75rem);
}

.outputs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.output-card {
  min-width: 0;
  padding: 1.35rem;
  border-right: 1px solid var(--line);
}

.output-card:first-child {
  padding-left: 0;
}

.output-card:last-child {
  border-right: 0;
  padding-right: 0;
}

.output-number {
  color: var(--coral-deep);
}

.output-card h3 {
  margin-top: 1.35rem;
}

.output-card > p:not(.output-number):not(.output-question) {
  margin: 0.85rem 0 1.45rem;
  color: var(--muted);
  font-size: 0.91rem;
}

.output-question {
  margin: 0;
  color: var(--ink);
  font: 700 0.73rem/1.55 var(--mono);
}

.preview-section {
  background: var(--paper-deep);
}

.preview-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}

.preview-copy h2 {
  max-width: 13ch;
}

.preview-copy > p {
  margin-top: 1.25rem;
}

.text-link {
  display: inline-flex;
  gap: 0.45rem;
  margin-top: 1.25rem;
  color: var(--ink);
  font: 700 0.72rem/1.35 var(--mono);
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.text-link span {
  color: var(--coral-deep);
}

.report-figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--ink);
  background: var(--paper-soft);
  box-shadow: var(--shadow);
}

.report-figure img {
  border-bottom: 1px solid var(--line);
}

.report-figure figcaption {
  padding: 0.65rem 0.8rem;
  color: var(--muted);
  font: 700 0.62rem/1.45 var(--mono);
  letter-spacing: 0.035em;
}

.run-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

.run-copy h2 {
  max-width: 14ch;
}

.run-copy > p {
  margin-top: 1.25rem;
}

.run-copy code {
  font-size: 0.88em;
}

.command-panel {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-soft);
}

.command-label {
  color: var(--paper-deep);
}

.command {
  display: block;
  margin-top: 0.85rem;
  font-size: clamp(0.78rem, 1.4vw, 0.94rem);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.command-actions {
  margin-top: 1.2rem;
}

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

.command-panel .button-primary:hover {
  border-color: var(--coral);
  background: var(--coral);
}

.command-panel .button-quiet {
  border-color: rgba(247, 241, 222, 0.7);
  color: var(--paper-soft);
}

.command-panel .button-quiet:hover {
  background: rgba(247, 241, 222, 0.13);
}

.copy-status {
  min-height: 1.5em;
  margin: 0.9rem 0 0;
  color: var(--paper-deep);
  font-size: 0.82rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
  background: var(--paper-deep);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.footer-inner p {
  max-width: 72ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.footer-inner div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font: 700 0.67rem/1.25 var(--mono);
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  .masthead-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-bottom: 1rem;
  }

  .hero,
  .preview-layout,
  .run-section {
    grid-template-columns: 1fr;
  }

  .verdict-ledger {
    max-width: 640px;
  }

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

  .output-card,
  .output-card:first-child,
  .output-card:last-child {
    padding: 1.35rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .output-card:last-child {
    border-bottom: 0;
  }

  .preview-copy h2,
  .run-copy h2 {
    max-width: 18ch;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 28px, 1180px);
  }

  .masthead-inner {
    min-height: 0;
    padding: 0.8rem 0 0;
  }

  .wordmark small {
    display: none;
  }

  .site-nav {
    gap: 0.8rem;
    overflow-x: auto;
    padding-bottom: 0.8rem;
  }

  .masthead-link {
    padding: 0.44rem 0.52rem;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 12vw, 3rem);
    line-height: 1;
    letter-spacing: -0.055em;
  }

  .hero-copy {
    border-left-width: 3px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-heading h2,
  .preview-copy h2,
  .run-copy h2 {
    font-size: clamp(1.9rem, 9vw, 3rem);
  }

  .promise-strip {
    margin-top: 1.8rem;
  }

  .promise-strip dd {
    font-size: 1rem;
  }

  .hero-actions,
  .command-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}

@media (max-width: 360px) {
  .promise-strip {
    grid-template-columns: 1fr;
  }

  .promise-strip div,
  .promise-strip div + div {
    padding: 0.72rem 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .promise-strip div:last-child {
    border-bottom: 0;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .evidence-card:hover {
    transform: none;
  }
}
