:root {
  color-scheme: light;
  --paper: #edf0f5;
  --paper-deep: #e1e5ed;
  --ink: #171821;
  --muted: #687081;
  --line: #c9ced8;
  --blue: #3157ff;
  --blue-dark: #2441bf;
  --repair: #d45a2b;
  --mint: #b8f4d2;
  --terminal: #20212a;
  --white: #f9faff;
  --display: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Avenir Next", "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "Cascadia Code", "Liberation Mono", monospace;
  --page: min(1180px, calc(100vw - 40px));
  font-family: var(--body);
  font-synthesis: none;
  background: var(--paper);
  color: var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-180%);
}

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

.site-header,
main,
footer {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.04em;
}

.prompt-mark {
  color: var(--blue);
}

nav {
  display: flex;
  gap: 30px;
  font-family: var(--mono);
  font-size: 13px;
}

nav a,
footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: 76px 0 88px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.96;
}

h1 {
  max-width: 670px;
  font-size: clamp(4rem, 7.4vw, 7.2rem);
}

h2 {
  font-size: clamp(3rem, 5vw, 5.6rem);
}

h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.lede {
  max-width: 620px;
  margin: 30px 0 0;
  color: #3e4350;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.hero-actions,
.closing > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0 var(--ink);
}

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

.button-primary:hover {
  background: var(--blue-dark);
}

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

.boundary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 20px;
  margin: 35px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  list-style: none;
  text-transform: uppercase;
}

.boundary-list li::before {
  content: "✓";
  margin-right: 7px;
  color: var(--blue);
  font-weight: 700;
}

.demo {
  margin: 0;
  background: var(--terminal);
  border: 1px solid var(--ink);
  box-shadow: 14px 14px 0 var(--blue);
  transform: rotate(0.5deg);
}

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

.demo figcaption {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-top: 1px solid #3b3d49;
  color: #c6cad5;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.replay-button {
  padding: 7px 0 7px 14px;
  border: 0;
  border-left: 1px solid #3b3d49;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.trace-section,
.install-section,
.privacy-section,
.closing {
  border-top: 1px solid var(--ink);
  padding: 120px 0;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(280px, 0.55fr);
  gap: 80px;
  align-items: end;
}

.section-intro .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -45px;
}

.section-intro > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.trace {
  margin: 76px 0 0;
  padding: 0;
  border-bottom: 1px solid var(--ink);
  list-style: none;
}

.trace li {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 26px;
  align-items: center;
  min-height: 126px;
  border-top: 1px solid var(--ink);
}

.trace li::after {
  content: "";
  position: absolute;
  left: 39px;
  top: 73px;
  width: 1px;
  height: 80px;
  background: var(--blue);
}

.trace li:last-child::after {
  display: none;
}

.trace-node {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--blue);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.trace p {
  margin: 7px 0 0;
  color: var(--muted);
}

.trace code,
.install-note code {
  font-family: var(--mono);
  font-size: 12px;
}

.trace code {
  padding: 8px 11px;
  background: var(--paper-deep);
  color: var(--blue-dark);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 70px;
}

.install-card {
  padding: 28px;
  border: 1px solid var(--ink);
  background: rgba(249, 250, 255, 0.55);
}

.install-card-wide {
  grid-column: 1 / -1;
}

.install-card-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.install-card-heading span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.command-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 14px 16px;
  background: var(--terminal);
  color: var(--white);
}

.command-row code {
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  white-space: nowrap;
}

.command-row button {
  flex: 0 0 auto;
  padding: 3px 0 3px 14px;
  border: 0;
  border-left: 1px solid #505362;
  background: transparent;
  color: var(--mint);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.install-note {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.privacy-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(400px, 0.72fr);
  gap: 90px;
  align-items: center;
}

.privacy-copy > p:not(.eyebrow) {
  max-width: 640px;
  margin: 28px 0 24px;
  color: var(--muted);
  font-size: 18px;
}

.text-link {
  color: var(--blue-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 5px;
}

.privacy-ledger {
  padding: 28px;
  background: var(--terminal);
  color: var(--white);
  box-shadow: 12px 12px 0 var(--repair);
}

.privacy-ledger > div {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 78px;
  border-bottom: 1px solid #41434f;
}

.privacy-ledger span,
.privacy-ledger small,
.privacy-ledger > p {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.privacy-ledger span {
  color: var(--mint);
}

.privacy-ledger small {
  color: #a2a7b5;
}

.privacy-ledger > p {
  margin: 25px 0 0;
  color: #ffae90;
}

.closing {
  text-align: center;
}

.closing h2 {
  max-width: 900px;
  margin-inline: auto;
}

.closing > div {
  justify-content: center;
}

footer {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

footer div {
  display: flex;
  gap: 22px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

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

  .demo {
    transform: none;
  }

  .section-intro,
  .privacy-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .section-intro .eyebrow {
    margin-bottom: -10px;
  }

  .privacy-ledger {
    max-width: 680px;
  }
}

@media (max-width: 680px) {
  :root {
    --page: min(100% - 28px, 1180px);
  }

  body {
    background-size: 100% 28px;
  }

  .site-header {
    min-height: 72px;
  }

  nav {
    gap: 15px;
  }

  nav a:nth-child(2) {
    display: none;
  }

  .hero {
    gap: 48px;
    padding: 58px 0 72px;
  }

  h1 {
    font-size: clamp(3.65rem, 18vw, 5.2rem);
  }

  h2 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

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

  .button {
    width: 100%;
  }

  .demo {
    width: calc(100% + 14px);
    margin-left: -7px;
    box-shadow: 7px 7px 0 var(--blue);
  }

  .demo figcaption span {
    display: none;
  }

  .demo figcaption {
    justify-content: flex-end;
  }

  .trace-section,
  .install-section,
  .privacy-section,
  .closing {
    padding: 82px 0;
  }

  .trace li {
    grid-template-columns: 58px 1fr;
    gap: 16px;
    padding: 24px 0;
  }

  .trace li::after {
    left: 26px;
    top: 81px;
    height: 92px;
  }

  .trace-node {
    width: 52px;
    height: 52px;
  }

  .trace code {
    grid-column: 2;
    justify-self: start;
  }

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

  .install-card-wide {
    grid-column: auto;
  }

  .install-card {
    padding: 20px;
  }

  .install-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .command-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-row button {
    padding: 8px 0 0;
    border-top: 1px solid #505362;
    border-left: 0;
  }

  .privacy-ledger {
    padding: 20px;
    box-shadow: 7px 7px 0 var(--repair);
  }

  .privacy-ledger > div {
    grid-template-columns: 34px 1fr;
  }

  .privacy-ledger small {
    grid-column: 2;
    margin-top: -18px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 28px 0;
  }
}

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

  .button {
    transition: none;
  }
}
