/* Emm's shared stylesheet. System fonts, no browser dependencies or scripts. */
:root {
  color-scheme: dark;
  --bg: #282828;
  --fg: #f4f1e9;
  --muted: #bcbab4;
  --line: #54534f;
  --accent: #62c8f1;
  --yellow: #feca10;
  --coral: #f85c46;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100svh;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--yellow); outline-offset: 6px; }
p { margin: 0 0 1rem; }
h1 { margin: 0; line-height: 1.07; font-weight: 550; letter-spacing: -.055em; text-wrap: balance; }

.site-head-inner, .landing {
  width: min(1160px, calc(100% - 80px));
  margin-inline: auto;
}
/* The SVG is 1016 × 384; its stream centers are 26, 60 and 94 below
   the viewBox top, with thickness 26. Continue from x=1000, the exact
   right endpoint of all three paths. Clip the decorative continuation at
   the viewport edge; its geometry always scales with the mark itself. */
.site-head { overflow: clip; padding-block: 34px; }
.site-head-inner {
  --mark-width: clamp(112px, 34vw, 150px);
  display: flex;
  align-items: end;
  justify-content: space-between;
}
.brand { position: relative; display: block; flex: none; width: var(--mark-width); }
.brand img { display: block; width: 100%; height: auto; }
.brand::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: calc(100% * 1000 / 1016 - .5px);
  top: 0;
  width: 100vw;
  height: 100%;
  background: linear-gradient(to bottom,
    transparent 0 3.3854167%, #f85c46 3.3854167% 10.15625%,
    transparent 10.15625% 12.2395833%, #feca10 12.2395833% 19.0104167%,
    transparent 19.0104167% 21.09375%, #00b0f0 21.09375% 27.8645833%,
    transparent 27.8645833% 100%);
}
.site-head nav { display: flex; flex-wrap: wrap; justify-content: end; gap: 12px 28px; margin-bottom: 2px; font-size: 14px; }
.site-head nav a { text-decoration: none; }
.home-page .site-head-inner {
  --mark-width: min(450px, 100%);
  flex-wrap: wrap;
  row-gap: 24px;
}
.home-page .site-head nav { margin-left: auto; }
.landing { display: grid; grid-template-columns: 1.65fr 1fr; gap: 95px; padding-block: 66px 88px; }
.landing h1 { max-width: 690px; font-size: clamp(42px, 5.3vw, 72px); }
.eyebrow { margin: 0 0 25px; color: var(--accent); font-size: clamp(20px, 2.1vw, 28px); line-height: 1.4; text-wrap: balance; }
.action { margin-top: 38px; }
.download {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 14px 22px;
  border-radius: 5px;
  background: var(--yellow);
  color: #242424;
  font-weight: 650;
  line-height: 1.5;
  text-decoration: none;
}
.download:hover { background: #ffda53; color: #181818; }
.fineprint { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.latest { margin-top: 12px; }
.story {
  align-self: end;
  padding-top: 24px;
  border-top: 3px solid var(--coral);
  color: var(--muted);
  line-height: 1.8;
  text-wrap: pretty;
}
.story p { margin: 0; }
.story a { color: var(--fg); }
.agent-intro { grid-column: 1 / -1; max-width: 850px; border-top: 1px solid var(--line); padding-top: 32px; }
.agent-intro h2 { margin: 0 0 16px; font-size: clamp(26px, 3.3vw, 36px); line-height: 1.2; font-weight: 550; letter-spacing: -.025em; text-wrap: balance; }
.agent-prompt { margin: 24px 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: #333536; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.agent-prompt code { padding: 0; background: none; font-size: 15px; line-height: 1.7; }
.agent-copy { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: -10px 0 20px; }
.agent-copy button { border: 1px solid var(--accent); border-radius: 4px; padding: 8px 14px; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
.agent-copy button:hover { background: #333536; }
.agent-copy button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.agent-copy [role="status"] { color: var(--muted); font-size: 14px; }
.agent-guide-description { margin-bottom: 0; color: var(--muted); }
.agent-guide-description a { color: var(--accent); }
/* Documents keep a quieter reading measure. Blog bodies are unchanged. */
body.doc { padding-bottom: 4rem; }
.doc main, .doc-head { width: min(760px, calc(100% - 80px)); margin-inline: auto; }
.doc-head { padding-top: 0; }
.doc h1 { margin-top: 50px; font-size: clamp(36px, 4.8vw, 58px); letter-spacing: -.04em; }
.doc .tagline { margin: 18px 0 46px; color: var(--muted); font-size: 17px; text-wrap: pretty; }
.card { margin-bottom: 40px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.card h2 { margin: 0 0 16px; font-size: 25px; font-weight: 550; line-height: 1.25; letter-spacing: -.025em; }
.lede { margin: 0 0 24px; color: var(--muted); text-wrap: pretty; }
.lede strong { color: var(--fg); }
.card .lede:last-child { margin-bottom: 0; }
.card a, .back a, .doc main > .lede a { color: var(--accent); }
.post { line-height: 1.8; }
.post .lede { font-size: 13px; }
.post .lede a { color: var(--muted); text-decoration: none; }
.post .lede a:hover { text-decoration: underline; }
/* The link to a post's own page, in words beside its date (Emm #620). */
.post .lede .permalink { color: var(--accent); }
.post ul { margin: 0 0 1rem; padding-left: 1.2rem; }
/* A post written in the owner's form (Emm #591), here and on the advisor
   site: the blocks Markdown can make that the earlier posts never used. */
.post-body { overflow-wrap: break-word; }
.post-body > :last-child { margin-bottom: 0; }
.post-body h3, .post-body h4, .post-body h5, .post-body h6 { margin: 1.6rem 0 .6rem; font-size: 18px; line-height: 1.3; font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.post-body img { max-width: 100%; height: auto; }
.doc .post-title { color: var(--accent); }
.post-body blockquote { margin: 0 0 1rem; padding-left: 16px; border-left: 2px solid var(--line); color: var(--muted); }
.post-body pre { margin: 0 0 1rem; padding: 14px 16px; border-radius: 4px; background: #333536; line-height: 1.5; }
.post-body pre code { padding: 0; background: none; }
.post-body table { display: block; overflow-x: auto; margin: 0 0 1rem; border-collapse: collapse; }
.post-body th, .post-body td { padding: 6px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.post-body hr { margin: 1.6rem 0; border: 0; border-top: 1px solid var(--line); }
code { padding: .1em .3em; border-radius: 3px; background: #383b3c; font-size: .9em; }
pre { overflow-x: auto; }
.roadmap { margin: 0; padding: 0; list-style: none; }
.roadmap > li { margin-bottom: 12px; padding-left: 16px; border-left: 2px solid var(--accent); }
.roadmap > li:last-child { margin-bottom: 0; }
.roadmap p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.values { margin: 0; padding-left: 1.4rem; }
.values > li { margin-bottom: 1rem; }
.values > li:last-child { margin-bottom: 0; }
.values ul { margin: 4px 0 0; padding-left: 1.2rem; color: var(--muted); }
.back { margin-top: 32px; }
body > main:not(.landing) { width: min(760px, calc(100% - 80px)); margin-inline: auto; }
body:not(.doc) > main:not(.landing) { padding-block: 80px; }
body:not(.doc) > main:not(.landing) h1 { margin-bottom: 24px; font-size: 42px; }

@media (max-width: 760px) {
  .site-head-inner, .landing, .doc main, .doc-head, body > main:not(.landing) { width: calc(100% - 40px); }
  .site-head-inner { flex-wrap: wrap; gap: 24px; }
  .site-head { padding-block: 26px; }
  .site-head nav { width: 100%; justify-content: start; gap: 12px 16px; font-size: 13px; }
  .landing { grid-template-columns: 1fr; gap: 42px; padding-block: 35px 50px; }
  .landing h1 { font-size: clamp(39px, 10.5vw, 65px); }
  .story { font-size: 15px; }
  .doc-head { padding-top: 0; }
  .doc h1 { margin-top: 36px; }
  .doc .tagline { margin-bottom: 32px; font-size: 16px; }
  .card { padding-top: 24px; }
}

/* The standalone CLI archives use the same document layout as the site. */
.cli-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 16px; }
.cli-heading h2 { margin: 0; }
.cli-heading h2 code { padding: 0; background: none; font-size: 1em; }
.cli-heading h2 span { font-size: 18px; }
.cli-app-link { margin: -24px 0 40px; color: var(--muted); }
.cli-app-link a { color: var(--accent); }
.cli-page .agent-intro { margin-bottom: 40px; }
.cli-version, .cli-source { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.cli-targets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 20px; padding: 0; list-style: none; }
.cli-targets li { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 5px; }
.cli-targets h3 { margin: 0 0 18px; font-size: 18px; font-weight: 550; line-height: 1.45; }
.cli-targets h3 span { display: block; color: var(--muted); font-size: 14px; font-weight: 400; }
.card .cli-download { display: inline-flex; align-items: center; gap: 20px; padding: 9px 14px; border: 1px solid var(--accent); border-radius: 4px; text-decoration: none; }
.cli-download:hover { background: #333536; }
.cli-checksum { margin-top: 14px; font-size: 12px; color: var(--muted); }
.cli-checksum summary { cursor: pointer; }
.cli-checksum code { display: block; margin-top: 8px; padding: 8px; overflow-wrap: anywhere; user-select: all; }
.cli-install pre { padding: 16px 20px; background: #333536; border-left: 3px solid var(--accent); }
.cli-install pre code { padding: 0; background: none; }
@media (max-width: 480px) {
  .cli-targets { grid-template-columns: 1fr; }
}

/* Jobs share the public site's single stylesheet and work without JavaScript. */
.jobs-steps { padding-left: 1.4rem; }
.jobs-steps li { margin-bottom: 1rem; }
.jobs-form { max-width: 600px; }
.jobs-field { border: 0; padding: 0; margin: 0 0 28px; min-width: 0; }
.jobs-field > label, .jobs-field legend { display: block; margin-bottom: 8px; font-weight: 600; }
.jobs-field input:not([type=radio]) {
  display: block; width: 100%; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--fg); padding: 12px; font: inherit;
}
.jobs-field input[type=radio] { margin: 0 8px 0 0; accent-color: var(--yellow); }
.jobs-field input:focus-visible { outline: 2px solid var(--yellow); outline-offset: 3px; }
.jobs-field div label { display: inline-block; padding-block: 5px; }
.jobs-form:not(:has(input[name=work_mode][value=in_person]:checked)) .jobs-authorization { display: none; }
.jobs-help { color: var(--muted); font-size: 14px; }
.jobs-errors, .jobs-form .errorlist { color: #ffb4a5; }
.jobs-form .errorlist { margin-top: 8px; padding-left: 1.2rem; }
.jobs-form button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
.jobs-form button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 5px; }

/* Pricing stays readable without scripts, including the ten-user boundary. */
.pricing-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.pricing-plan { border-top: 3px solid var(--accent); padding-top: 24px; }
.pricing-plan:first-child { border-color: var(--yellow); }
.pricing-plan h2 { margin: 0 0 16px; font-size: 20px; font-weight: 550; }
.price { margin-bottom: 16px; font-size: 64px; font-weight: 550; line-height: 1.15; letter-spacing: -.04em; }
.price span { display: inline-block; font-size: 16px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.pricing-plan > p:last-child { color: var(--muted); }
.pricing-example { margin-top: 20px; }
.pricing-action { margin: 28px 0 56px; }
.pricing-stack { margin: 24px 0; }
.pricing-stack > div { display: flex; justify-content: space-between; gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pricing-stack dt span, .pricing-table th span { display: block; font-size: 13px; font-weight: 400; color: var(--muted); }
.pricing-stack dd { margin: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pricing-total { font-weight: 650; }
.pricing-table { width: 100%; margin: 32px 0 20px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.pricing-table caption { text-align: left; margin-bottom: 12px; font-weight: 550; }
.pricing-table th, .pricing-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: right; }
.pricing-table th:first-child { padding-left: 0; text-align: left; }
.pricing-table th:last-child, .pricing-table td:last-child { padding-right: 0; }
.pricing-table td:nth-child(2) { color: var(--yellow); font-weight: 650; }
@media (max-width: 480px) {
  .pricing-plans { grid-template-columns: 1fr; gap: 24px; }
  .price { font-size: 54px; }
  .pricing-table { font-size: 14px; }
}
