:root {
  --paper: #f3f0e7;
  --paper-deep: #e8e2d4;
  --ink: #171714;
  --muted: #625f57;
  --rule: #b7b1a3;
  --signal: #d9442a;
  --highlight: #e9d96f;
  --green: #32664a;
  --blue: #315f7d;
  --purple: #67517d;
  --max: 1180px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(23, 23, 20, 0.03) 1px, transparent 1px) 0 0 / 100% 28px,
    var(--paper);
}

a { color: inherit; text-underline-offset: 0.2em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

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

.masthead,
main > *,
.proof-strip,
footer {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.masthead {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  flex: 0 0 auto;
  font: 800 1.3rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  letter-spacing: -0.055em;
}

.wordmark span { color: var(--signal); }

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 38px);
  font: 700 0.75rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.055em;
}

.masthead nav a { text-decoration: none; }
.masthead nav a:hover { text-decoration: underline; }

.masthead .repo-link {
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(54px, 8vw, 110px);
  align-items: end;
  padding: clamp(72px, 10vw, 132px) 0 74px;
}

.kicker,
.section-label,
.mini-label,
.case-tag,
.number {
  font: 750 0.72rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.kicker {
  width: fit-content;
  margin: 0 0 27px;
  padding: 7px 10px 6px;
  color: var(--paper);
  background: var(--ink);
}

h1 {
  margin: 0;
  font: 500 clamp(4rem, 8.3vw, 7.7rem)/0.89 Georgia, "Times New Roman", serif;
  letter-spacing: -0.065em;
}

h1 em {
  position: relative;
  z-index: 0;
  color: var(--signal);
  font-style: italic;
}

h1 em::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.02em;
  right: -0.02em;
  bottom: 0.08em;
  height: 0.12em;
  background: var(--highlight);
}

.lede {
  max-width: 780px;
  margin: 38px 0 0;
  font: 450 clamp(1.28rem, 2.1vw, 1.75rem)/1.43 Georgia, "Times New Roman", serif;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  font: 750 0.78rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.button:hover { transform: translate(-2px, -2px); }
.button-primary { color: var(--paper); background: var(--ink); box-shadow: 4px 4px 0 var(--signal); }
.button-secondary { background: rgba(255, 255, 255, 0.28); }

.first-prompt {
  padding: 20px 21px 22px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.32);
  box-shadow: 7px 7px 0 var(--ink);
}

.prompt-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.065em;
}

.prompt-topline span:first-child { color: var(--signal); }

.first-prompt p {
  margin: 24px 0 34px;
  font: 600 0.95rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace;
}

code {
  padding: 0.08em 0.25em;
  color: var(--ink);
  background: var(--highlight);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}

.first-prompt a,
.status-copy a {
  font: 750 0.75rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--ink);
  border-bottom: 0;
  background: var(--paper-deep);
}

.proof-strip > * {
  min-width: 0;
  padding: 15px 18px;
  font: 600 0.69rem/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.proof-strip > * + * { border-left: 1px solid var(--rule); }

.example,
.method,
.prompt-library,
.status {
  border-top: 1px solid var(--ink);
}

.example { padding: 88px 0 100px; }

.section-intro {
  display: grid;
  grid-template-columns: 0.48fr 1.15fr 0.75fr;
  gap: 42px;
  align-items: start;
}

.section-label { margin: 6px 0 0; color: var(--signal); }

h2 {
  margin: 0;
  font: 600 clamp(2.7rem, 5vw, 5rem)/0.98 Georgia, "Times New Roman", serif;
  letter-spacing: -0.047em;
}

.section-intro > p:last-child,
.install-intro > p:last-child,
.status-copy p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.case-sheet {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  margin-top: 58px;
  border: 1px solid var(--ink);
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 9px 9px 0 var(--ink);
}

.case-input,
.case-output { padding: clamp(26px, 4vw, 46px); }
.case-input { border-right: 1px solid var(--ink); background: var(--paper-deep); }
.case-tag { width: fit-content; margin-bottom: 42px; padding: 6px 8px; color: var(--paper); background: var(--ink); }

.case-facts { margin: 0; }
.case-facts > div { padding: 15px 0; border-top: 1px solid var(--rule); }
.case-facts > div:last-child { border-bottom: 1px solid var(--rule); }

.case-facts dt {
  margin-bottom: 6px;
  color: var(--muted);
  font: 700 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.case-facts dd { margin: 0; font-size: 0.98rem; line-height: 1.55; }
.case-facts dd a { font-weight: 750; }

.case-input blockquote {
  margin: 42px 0 0;
  font: 600 1.45rem/1.35 Georgia, "Times New Roman", serif;
  letter-spacing: -0.015em;
}

.bottom-line {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.mini-label { margin: 0 0 11px; color: var(--muted); }

.bottom-line > p:last-child {
  max-width: 720px;
  margin: 0;
  font: 500 1.35rem/1.45 Georgia, "Times New Roman", serif;
}

.decision-list { margin-top: 10px; }

.decision {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 22px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}

.decision > span {
  width: fit-content;
  height: fit-content;
  padding: 5px 7px;
  border: 1px solid currentColor;
  font: 800 0.66rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}

.decision-borrow > span { color: var(--green); }
.decision-try > span { color: var(--signal); }
.decision-track > span { color: var(--blue); }
.decision-reject > span { color: var(--purple); }
.decision p { margin: -3px 0 0; color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

.evidence-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  color: var(--muted);
  font: 650 0.65rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.evidence-line span:last-child { display: flex; gap: 18px; }

.install {
  width: 100%;
  max-width: none;
  padding: 90px max(24px, calc((100% - var(--max)) / 2)) 82px;
  color: var(--paper);
  background: var(--ink);
}

.install-intro {
  display: grid;
  grid-template-columns: 0.48fr 1.15fr 0.75fr;
  gap: 42px;
}

.install .section-label { color: var(--highlight); }
.install-intro > p:last-child { color: #bcb8ad; }

.install-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 58px;
}

.install-card { min-width: 0; border: 1px solid #6b6962; background: #20201d; }

.install-card-header {
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  border-bottom: 1px solid #52514c;
}

.install-card .mini-label { color: var(--highlight); }
.install-card h3 { margin: 0; font: 600 1.45rem/1.1 Georgia, "Times New Roman", serif; }

.copy-button {
  display: none;
  padding: 8px 11px;
  border: 1px solid #7d7a70;
  color: var(--paper);
  background: transparent;
  font: 750 0.65rem/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
  cursor: pointer;
}

.js .copy-button { display: block; }
.copy-button:hover { color: var(--ink); background: var(--highlight); border-color: var(--highlight); }

pre {
  min-height: 115px;
  display: flex;
  align-items: center;
  overflow-x: auto;
  margin: 0;
  padding: 22px 24px;
  border-bottom: 1px solid #52514c;
  white-space: pre-wrap;
}

pre code {
  padding: 0;
  color: #f0ede3;
  background: transparent;
  font-size: 0.82rem;
  line-height: 1.7;
}

.invoke { margin: 0; padding: 15px 24px; color: #bcb8ad; font-size: 0.82rem; }
.invoke code { color: var(--ink); }

.inspect-first { margin: 26px 0 0; color: #bcb8ad; font-size: 0.9rem; }
.inspect-first a { color: var(--paper); font-weight: 700; }

.method { padding: 92px 0 100px; }
.method-intro { grid-template-columns: 0.48fr 1.9fr; }

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 58px;
  border: 1px solid var(--ink);
}

.mode-grid article { padding: 32px clamp(24px, 4vw, 46px) 40px; }
.mode-grid article + article { border-left: 1px solid var(--ink); }
.number { margin: 0 0 54px; color: var(--signal); }
.mode-grid h3 { margin: 0 0 15px; font: 600 2rem/1 Georgia, "Times New Roman", serif; }
.mode-grid article > p:last-child { max-width: 470px; margin: 0; color: var(--muted); line-height: 1.65; }

.method-steps {
  list-style: none;
  margin: 68px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
}

.method-steps li {
  display: grid;
  grid-template-columns: 0.48fr 1.9fr;
  gap: 42px;
  padding: 25px 0 27px;
  border-bottom: 1px solid var(--rule);
}

.method-steps > li > span { color: var(--signal); font: 750 0.7rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; }
.method-steps div { display: grid; grid-template-columns: 0.55fr 1.45fr; gap: 28px; }
.method-steps h3 { margin: 0; font: 600 1.35rem/1.2 Georgia, "Times New Roman", serif; }
.method-steps p { margin: 0; color: var(--muted); line-height: 1.55; }

.prompt-library {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  padding: 82px 0 90px;
}

.prompt-library .section-label { margin-bottom: 32px; }
.prompt-list { border-top: 1px solid var(--ink); }

.prompt-copy {
  width: 100%;
  display: grid;
  grid-template-columns: 0.55fr 1.2fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: copy;
}

.prompt-copy > span { color: var(--signal); font: 750 0.67rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.prompt-copy q { color: var(--muted); font: 500 1.05rem/1.4 Georgia, "Times New Roman", serif; }
.prompt-copy em { font: 700 0.62rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; font-style: normal; text-transform: uppercase; }
.prompt-copy:hover q { color: var(--ink); }

.status {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding: 80px 0 88px;
}

.status .section-label { margin-bottom: 34px; }
.status-copy { align-self: end; }
.status-copy p + p { margin-top: 18px; }
.status-copy a { display: inline-block; margin-top: 22px; }

footer {
  min-height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 30px;
  align-items: center;
  border-top: 1px solid var(--ink);
}

.footer-links { display: flex; gap: 24px; font: 700 0.7rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
footer > span:last-child { justify-self: end; color: var(--muted); font: 650 0.66rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .first-prompt { max-width: 620px; }
  .section-intro, .install-intro { grid-template-columns: 0.42fr 1.3fr; }
  .section-intro > p:last-child, .install-intro > p:last-child { grid-column: 2; }
  .case-sheet { grid-template-columns: 1fr; }
  .case-input { border-right: 0; border-bottom: 1px solid var(--ink); }
  .prompt-library { grid-template-columns: 1fr; gap: 48px; }
  footer { grid-template-columns: 1fr auto; }
  footer > span:last-child { display: none; }
}

@media (max-width: 720px) {
  .masthead, main > *, .proof-strip, footer { width: min(100% - 28px, var(--max)); }
  .masthead { min-height: 68px; }
  .masthead nav a:nth-child(1), .masthead nav a:nth-child(3) { display: none; }
  .hero { padding-top: 66px; }
  h1 { font-size: clamp(3.6rem, 17vw, 6rem); }
  .hero-actions { align-items: stretch; }
  .button { flex: 1 1 200px; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip > * + * { border-left: 0; }
  .proof-strip > *:nth-child(even) { border-left: 1px solid var(--rule); }
  .proof-strip > *:nth-child(n + 3) { border-top: 1px solid var(--rule); }
  .example, .method { padding-block: 70px 76px; }
  .section-intro, .install-intro, .method-intro { grid-template-columns: 1fr; gap: 22px; }
  .section-intro > p:last-child, .install-intro > p:last-child { grid-column: auto; }
  .case-sheet { margin-top: 40px; box-shadow: 5px 5px 0 var(--ink); }
  .decision { grid-template-columns: 82px 1fr; gap: 13px; }
  .evidence-line { flex-direction: column; }
  .install { padding: 70px 14px 66px; }
  .install-grid, .mode-grid { grid-template-columns: 1fr; }
  .mode-grid article + article { border-left: 0; border-top: 1px solid var(--ink); }
  .method-steps li, .method-steps div { grid-template-columns: 1fr; gap: 10px; }
  .prompt-library { padding-block: 66px 72px; }
  .prompt-copy { grid-template-columns: 1fr auto; }
  .prompt-copy q { grid-column: 1 / -1; grid-row: 2; }
  .status { grid-template-columns: 1fr; gap: 36px; padding-block: 68px 76px; }
  footer { min-height: 96px; }
}

@media (max-width: 430px) {
  .masthead nav { gap: 13px; }
  .masthead .repo-link { padding: 9px 10px; }
  .first-prompt { box-shadow: 4px 4px 0 var(--ink); }
  .proof-strip { grid-template-columns: 1fr; }
  .proof-strip > *:nth-child(even) { border-left: 0; }
  .proof-strip > * + * { border-top: 1px solid var(--rule); }
  .case-input, .case-output { padding: 24px 20px; }
  .decision { grid-template-columns: 1fr; }
  .install-card-header { min-height: 96px; padding-inline: 18px; }
  pre, .invoke { padding-inline: 18px; }
  .footer-links { gap: 15px; }
}

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