:root {
  color-scheme: light;
  --paper: #f7f3e8;
  --ink: #111111;
  --muted: #5f5a50;
  --green: #1ed760;
  --orange: #ff6b35;
  --yellow: #f4d35e;
  --line: #111111;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  touch-action: manipulation;
}

body {
  margin: 0;
}

a {
  color: inherit;
}

.skip-link {
  background: var(--green);
  color: var(--ink);
  left: 1rem;
  padding: 0.5rem 0.75rem;
  position: fixed;
  top: -4rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

#content-slot {
  min-height: calc(100vh - 64px);
}

.hero {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.88fr);
  padding: clamp(1.5rem, 3vw, 2.75rem) clamp(1rem, 5vw, 4rem);
}

.hero-copy {
  align-self: end;
  max-width: 850px;
}

.eyebrow {
  align-self: start;
  border: 1px solid var(--ink);
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  justify-self: start;
  margin: 0 0 1rem;
  padding: 0.35rem 0.5rem;
  text-transform: uppercase;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.96;
  margin: 0;
}

h1 {
  font-size: clamp(3.6rem, 6.5vw, 5.8rem);
  max-width: 11ch;
}

h2 {
  font-size: clamp(2rem, 6vw, 5.5rem);
}

.lede,
.page-hero p,
.split p {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.45;
}

.lede {
  max-width: 720px;
}

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

.primary-action,
.secondary-action {
  border: 1px solid var(--ink);
  font-weight: 900;
  padding: 0.85rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.primary-action {
  background: var(--green);
}

.secondary-action {
  background: transparent;
}

.goal-wall {
  background: var(--green);
  border-bottom: 1px solid var(--ink);
  border-top: 1px solid var(--ink);
  color: var(--ink);
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 4rem);
}

.goal-wall p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.25rem, 7vw, 7rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  margin: 0;
  max-width: 18ch;
}

.proof-strip {
  background: var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--paper);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 0;
  padding: 1px;
}

.proof-strip strong {
  align-items: center;
  background: var(--paper);
  color: var(--ink);
  display: flex;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  justify-content: center;
  min-height: 4.5rem;
  padding: 0.8rem;
  text-align: center;
  text-transform: uppercase;
}

.split,
.code-panel,
.page-hero,
.landing-section {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.split > *,
.code-panel > *,
.page-hero > *,
.docs-grid > *,
.coming-soon-grid > * {
  min-width: 0;
}

.landing-section {
  border-top: 1px solid var(--ink);
}

.landing-section h2 {
  max-width: 10ch;
}

.section-copy {
  align-self: end;
  display: grid;
  gap: 1.15rem;
}

.section-copy p,
.agent-list {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.55;
  margin: 0;
}

.install-section {
  background: var(--yellow);
}

.component-section {
  background: #eaf2ff;
}

.agent-section {
  background: var(--ink);
  color: var(--paper);
}

.agent-section .eyebrow {
  border-color: var(--paper);
}

.agent-section .section-copy p,
.agent-section .agent-list {
  color: #d7d0c2;
}

.agent-list {
  display: grid;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
}

.agent-list li {
  border-top: 1px solid #6c665c;
  padding-top: 0.65rem;
}

.cta-section {
  background: var(--green);
  border-top: 1px solid var(--ink);
  padding: clamp(3rem, 7vw, 6rem) clamp(1rem, 5vw, 4rem);
}

.cta-section h2 {
  max-width: 11ch;
}

.compact h1,
.manifesto h1 {
  max-width: 12ch;
}

.page-hero .eyebrow {
  grid-column: 1 / -1;
}

.page-hero h1 {
  grid-column: 1 / 2;
}

.page-hero p:not(.eyebrow) {
  align-self: end;
  grid-column: 2 / 3;
  margin: 0;
  max-width: 720px;
}

.code-panel {
  background: var(--yellow);
  border-top: 1px solid var(--ink);
}

pre {
  background: var(--ink);
  color: var(--paper);
  margin: 0;
  overflow-x: auto;
  padding: 1.25rem;
}

.code-block {
  border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--orange);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  line-height: 1.55;
}

p code {
  background: color-mix(in srgb, var(--yellow) 45%, transparent);
  border: 1px solid var(--ink);
  color: var(--ink);
  font-size: 0.85em;
  overflow-wrap: anywhere;
  padding: 0.08rem 0.2rem;
}

.tok.keyword {
  color: var(--green);
  font-weight: 800;
}

.tok.function {
  color: #f4d35e;
}

.tok.string {
  color: #88d9ff;
}

.tok.property {
  color: #ff9f80;
}

.tok.comment {
  color: #8e897f;
  font-style: italic;
}

.tok.number,
.tok.option {
  color: #ff6b35;
}

.tok.punctuation {
  color: #d7d0c2;
}

.link-strip {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(3rem, 5vw, 4rem);
}

.link-strip a {
  align-items: center;
  border: 1px solid var(--ink);
  display: flex;
  font-weight: 900;
  justify-content: space-between;
  min-height: 4.5rem;
  padding: 1rem;
  text-decoration: none;
  text-transform: uppercase;
}

.link-strip span,
.coming-soon-grid span {
  align-self: start;
  background: var(--green);
  border: 1px solid var(--ink);
  justify-self: start;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 0.25rem 0.4rem;
  text-transform: uppercase;
}

.docs-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(3rem, 7vw, 6rem);
}

.docs-grid article {
  border: 1px solid var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-rows: auto 1fr;
  padding: 1rem;
}

.docs-grid h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

.principles {
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}

.coming-soon-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: 0 clamp(1rem, 5vw, 4rem) clamp(4rem, 8vw, 7rem);
}

.coming-soon-grid article {
  border: 1px solid var(--ink);
  display: grid;
  gap: 1rem;
  min-height: 18rem;
  padding: 1rem;
}

.coming-soon-grid h2 {
  align-self: end;
  font-size: clamp(1.6rem, 3.4vw, 2.7rem);
}

.coming-soon-grid p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
  margin: 0;
}

.principles ol {
  counter-reset: item;
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.principles li {
  align-items: start;
  border-top: 1px solid var(--ink);
  display: grid;
  gap: 1rem;
  grid-template-columns: 4rem minmax(0, 0.6fr) minmax(0, 1fr);
  padding: 1.5rem 0;
}

.principles li::before {
  color: var(--orange);
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.principles strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1;
}

.principles span {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.45;
}

.not-found {
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 4rem);
}

@media (max-width: 900px) {
  .hero,
  .split,
  .code-panel,
  .page-hero,
  .landing-section,
  .principles li {
    grid-template-columns: 1fr;
  }

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

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

  .link-strip,
  .coming-soon-grid {
    grid-template-columns: 1fr;
  }

  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p:not(.eyebrow) {
    grid-column: auto;
  }

  h1 {
    font-size: clamp(3.25rem, 15vw, 5.75rem);
  }
}
