/* claude-computer.com
   Palette, stroke weights and type scale carried over from the repo's
   hand-laid SVG diagrams (tools/render.py: LIGHT / DARK). */

:root {
  --bg: #fbfaf7;
  --card: #ffffff;
  --sunk: #f3f1ec;
  --ink: #1c1b19;
  --muted: #6e6a63;
  --faint: #a39e95;
  --line: #e3dfd6;
  --strong: #cfc9bd;
  --accent: #0b6b58;
  --accent-ink: #0b6b58;
  --accent-bg: #e4f3ef;
  --git: #3355d1;
  --r2: #b3640a;
  --human: #c4461b;
  --hand: #8f6209;
  --claude: #2f5bd3;
  --warn-bg: #faf3e3;
  --warn-line: #e6d6ab;
  --term-bg: #15151a;
  --term-line: #2a2a31;
  --term-ink: #edebe6;
  --term-muted: #8a8790;
  --term-accent: #7ee0c3;
  --shadow: 0 1px 2px rgba(28, 27, 25, 0.05), 0 8px 24px -16px rgba(28, 27, 25, 0.25);
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141417;
    --card: #1d1d22;
    --sunk: #18181c;
    --ink: #eceae4;
    --muted: #a29e95;
    --faint: #6f6b64;
    --line: #2e2d34;
    --strong: #403f47;
    --accent: #4fd1b0;
    --accent-ink: #4fd1b0;
    --accent-bg: #15302a;
    --git: #7c9bff;
    --r2: #f2a444;
    --human: #f08a62;
    --hand: #e3b452;
    --claude: #86a6ff;
    --warn-bg: #221d10;
    --warn-line: #4a3d1d;
    --term-bg: #0c0c0f;
    --term-line: #26262d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -18px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #141417;
  --card: #1d1d22;
  --sunk: #18181c;
  --ink: #eceae4;
  --muted: #a29e95;
  --faint: #6f6b64;
  --line: #2e2d34;
  --strong: #403f47;
  --accent: #4fd1b0;
  --accent-ink: #4fd1b0;
  --accent-bg: #15302a;
  --git: #7c9bff;
  --r2: #f2a444;
  --human: #f08a62;
  --hand: #e3b452;
  --claude: #86a6ff;
  --warn-bg: #221d10;
  --warn-line: #4a3d1d;
  --term-bg: #0c0c0f;
  --term-line: #26262d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 10px 28px -18px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--ink);
  text-decoration-color: var(--strong);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--accent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

code {
  font-family: var(--mono);
  font-size: 0.87em;
  background: var(--sunk);
  border-radius: 4px;
  padding: 0.06em 0.3em;
  color: var(--ink);
  word-break: break-word;
}

.band-alt code {
  background: var(--card);
}

h1,
h2,
h3 {
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

strong {
  font-weight: 650;
}

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 44px);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 10px 16px;
  border: 1px solid var(--line);
  z-index: 20;
}

.skip:focus {
  left: 12px;
  top: 12px;
}

.sr-live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ───────────────────────── top bar ───────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 58px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 0 auto;
}

.mark-glyph {
  color: var(--accent);
  display: block;
}

.mark-word {
  font-family: var(--mono);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
  font-size: 14.5px;
  color: var(--muted);
  flex-wrap: wrap;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 3px 0;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.ghost-link {
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--strong);
}

.ghost-link:hover {
  color: var(--ink);
}

.theme-btn {
  font: inherit;
  font-size: 12.5px;
  font-family: var(--mono);
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 11px;
  cursor: pointer;
}

.theme-btn:hover {
  color: var(--ink);
  border-color: var(--strong);
}

.theme-btn-state {
  color: var(--accent);
  font-weight: 650;
}

/* ───────────────────────── hero ───────────────────────── */

.hero {
  border-bottom: 1px solid var(--line);
  padding: clamp(44px, 7vw, 88px) 0 clamp(40px, 6vw, 76px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.overline {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 650;
}

h1 {
  font-size: clamp(32px, 4.3vw, 48px);
  font-weight: 700;
  letter-spacing: -0.032em;
  margin: 0 0 22px;
}

.lede {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 34em;
}

.lede code,
.lede-sm code {
  color: var(--ink);
}

.lede-sm {
  font-size: 17.5px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 40em;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 11px 19px;
  border-radius: 8px;
  border: 1px solid var(--strong);
  color: var(--ink);
  background: var(--card);
}

.btn:hover {
  border-color: var(--accent);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

:root[data-theme="dark"] .btn-primary,
:root:not([data-theme="light"]) .btn-primary {
  color: var(--bg);
}

.btn-primary:hover {
  filter: brightness(1.08);
}

.jobs-inline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14px;
  color: var(--muted);
  font-family: var(--mono);
}

.jobs-inline li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.dot-human {
  background: var(--human);
}
.dot-hand {
  background: var(--hand);
}
.dot-claude {
  background: var(--claude);
}

/* terminal */

.term {
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--term-line);
}

.term-dots {
  display: inline-flex;
  gap: 6px;
}

.term-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: block;
}

.term-dots i:nth-child(1) {
  background: #ff5f57;
}
.term-dots i:nth-child(2) {
  background: #febc2e;
}
.term-dots i:nth-child(3) {
  background: #28c840;
}

.term-title {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--term-muted);
  margin: 0 auto;
}

.term-body {
  margin: 0;
  padding: 16px 16px 14px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.85;
  color: var(--term-ink);
  tab-size: 2;
}

.term-body code {
  background: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
  word-break: normal;
}

/* Command lines never wrap mid-token: the block scrolls inside itself, and it
   is focusable so a keyboard can scroll it too. */
.term-body,
.code pre {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.term-body:hover,
.term-body:focus-visible,
.code pre:hover,
.code pre:focus-visible {
  scrollbar-color: var(--term-muted) transparent;
}

.term-body::-webkit-scrollbar,
.code pre::-webkit-scrollbar {
  height: 8px;
}

.term-body::-webkit-scrollbar-thumb,
.code pre::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 4px;
}

.term-body:hover::-webkit-scrollbar-thumb,
.term-body:focus-visible::-webkit-scrollbar-thumb,
.code pre:hover::-webkit-scrollbar-thumb,
.code pre:focus-visible::-webkit-scrollbar-thumb {
  background: var(--term-line);
}

.term-body .p {
  color: var(--term-accent);
}

.term-body .c {
  color: var(--term-muted);
}

.term-foot {
  margin: 0;
  padding: 12px 16px 15px;
  border-top: 1px solid var(--term-line);
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--term-muted);
}

.term-foot a {
  color: var(--term-accent);
  text-decoration-color: rgba(126, 224, 195, 0.5);
}

.term-prompt {
  color: var(--term-accent);
  margin-right: 4px;
}

.copy {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: transparent;
  color: var(--term-muted);
  border: 1px solid var(--term-line);
  border-radius: 6px;
  padding: 3px 9px;
  cursor: pointer;
  flex: 0 0 auto;
}

.copy:hover {
  color: var(--term-ink);
  border-color: var(--term-muted);
}

.copy[data-copied="yes"] {
  color: var(--term-accent);
  border-color: var(--term-accent);
}

/* ───────────────────────── sections ───────────────────────── */

.band {
  border-bottom: 1px solid var(--line);
  padding: clamp(48px, 7vw, 86px) 0;
}

.band-alt {
  background: var(--sunk);
}

.sec {
  --sec-gap: clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: 186px minmax(0, 1fr);
  gap: var(--sec-gap);
  align-items: start;
}

.sec-label {
  padding-top: 4px;
}

.sec-label .num {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 8px;
}

.sec-label h2 {
  font-size: 23px;
  font-weight: 700;
}

.sec-body > p {
  max-width: 64ch;
  color: var(--muted);
  margin: 0 0 18px;
}

.sec-body > p strong,
.block p strong {
  color: var(--ink);
}

.sub {
  font-size: 13px;
  font-family: var(--mono);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 40px 0 16px;
}

/* the idea */

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.order {
  background: var(--card);
  padding: 20px 22px 22px;
}

.order-head {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 14px;
}

.order-ours .order-head {
  color: var(--accent);
}

.order ol {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
  font-size: 15.5px;
}

.order-ours ol {
  color: var(--ink);
}

.order li + li {
  margin-top: 6px;
}

.order li::marker {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--faint);
}

/* three jobs */

.jobs {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.job {
  border-top: 3px solid var(--strong);
  padding-top: 14px;
}

.job-human {
  border-top-color: var(--human);
}
.job-hand {
  border-top-color: var(--hand);
}
.job-claude {
  border-top-color: var(--claude);
}

.job dt {
  font-weight: 700;
  font-size: 16.5px;
  margin-bottom: 6px;
}

.job dd {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.55;
}

/* how it works */

.block {
  margin-bottom: 40px;
}

.block:last-child {
  margin-bottom: 0;
}

.block h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.block p {
  color: var(--muted);
  margin: 0;
  max-width: 68ch;
}

.block-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 34px 40px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}

.block-pair .block {
  margin-bottom: 0;
}

.fig {
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  overflow: hidden;
}

.fig picture {
  display: block;
  overflow-x: auto;
}

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

/* Diagrams are drawn at 1280px wide; on a wide screen they take the whole
   column grid, label column included, so the type in them stays legible. */
@media (min-width: 901px) {
  .fig {
    margin-left: calc(-1 * (186px + var(--sec-gap)));
  }
}

.fig figcaption {
  border-top: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 13.5px;
  color: var(--muted);
  background: var(--sunk);
}

.band-alt .fig figcaption {
  background: var(--bg);
}

/* limits */

.warn {
  border: 1px solid var(--warn-line);
  border-left: 4px solid var(--hand);
  background: var(--warn-bg);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 30px);
}

.warn-head {
  margin: 0 0 18px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.warn-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.warn-list li {
  color: var(--muted);
  padding: 14px 0;
  border-top: 1px solid var(--warn-line);
  max-width: 72ch;
}

.warn-list li strong {
  color: var(--ink);
}

.warn-foot {
  margin: 18px 0 0;
  font-size: 15px;
  color: var(--muted);
}

/* quick start */

.prereq ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--muted);
  max-width: 64ch;
}

.prereq li + li {
  margin-top: 5px;
}

.prereq .sub {
  margin-top: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 40px 0 0;
  padding: 0;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding-left: 52px;
  padding-bottom: 34px;
  border-left: 1px solid var(--line);
  margin-left: 15px;
}

.steps > li:last-child {
  border-left-color: transparent;
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: -15px;
  top: -2px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--strong);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.steps h3 {
  font-size: 18px;
  margin-bottom: 6px;
  padding-top: 2px;
}

.steps p {
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 62ch;
}

.code {
  position: relative;
  background: var(--term-bg);
  border: 1px solid var(--term-line);
  border-radius: 10px;
}

.code .copy {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--term-bg);
  z-index: 1;
}

.code pre {
  margin: 0;
  padding: 16px 92px 16px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--term-ink);
}

.code pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
  color: inherit;
  white-space: pre;
  word-break: normal;
}

.aside {
  margin: 34px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 15.5px;
  max-width: 68ch;
}

/* help wanted */

.wants {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
}

.wants li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.want-k {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 2px;
}

.want-v {
  color: var(--muted);
  font-size: 16px;
}

/* ───────────────────────── footer ───────────────────────── */

.footer {
  padding: 48px 0 56px;
  background: var(--sunk);
}

.footer-in {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 28px 40px;
}

.footer-word {
  font-family: var(--mono);
  font-weight: 650;
  font-size: 15px;
  margin: 0 0 8px;
}

.footer-by {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 48ch;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  align-self: start;
}

.footer-links a:hover {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.disclaimer {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

/* ───────────────────────── responsive ───────────────────────── */

@media (max-width: 900px) {
  /* The diagrams are drawn at 1280px; below that they keep close to their
     native size and scroll inside the figure, rather than shrinking to
     unreadable type. */
  .fig img {
    min-width: 1100px;
  }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .sec {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .sec-label {
    position: static;
    display: flex;
    align-items: baseline;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
  }
  .sec-label .num {
    margin-bottom: 0;
  }
  .nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 16px;
    font-size: 14px;
    border-top: 1px solid var(--line);
    padding-top: 8px;
  }
  .topbar-right {
    margin-left: auto;
  }
  .footer-in {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  body {
    font-size: 16.5px;
  }
  .wants li {
    grid-template-columns: minmax(0, 1fr);
  }
  .topbar {
    position: static;
  }
  .nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
  .code pre {
    padding-right: 16px;
    padding-top: 44px;
  }
  .code .copy {
    top: 8px;
  }
  .term-body {
    font-size: 11.5px;
  }
  .steps > li {
    padding-left: 28px;
    margin-left: 13px;
  }
  .steps > li::before {
    width: 26px;
    height: 26px;
    left: -13px;
  }
  .nav {
    mask-image: linear-gradient(to right, #000 88%, transparent);
    -webkit-mask-image: linear-gradient(to right, #000 88%, transparent);
    padding-right: 24px;
  }
}
