:root {
  color-scheme: light dark;
  --ink: light-dark(#302d29, #ede8df);
  --muted: light-dark(#6c655c, #b7ada1);
  --canvas: light-dark(#f4f1eb, #1d1c1a);
  --paper: light-dark(#fffdf8, #272522);
  --inset: light-dark(#e9e4db, #302c27);
  --line: light-dark(#d0c8bb, #49433b);
  --fine-line: light-dark(#e4ddd2, #39342d);
  --green: light-dark(#3c5b48, #b0c4ab);
  --rust: light-dark(#a66749, #d0a284);
  --action: light-dark(#33322f, #e6ded1);
  --action-ink: light-dark(#fffdf8, #27231f);
  --data: light-dark(#596780, #b5bed0);
  color: var(--ink);
  background: var(--canvas);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
section[id] { scroll-margin-top: 24px; }
html[data-theme=light] { color-scheme: light; }
html[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 5px; }
svg { display: block; flex-shrink: 0; }
button { border: 0; background: none; }
.wrap { width: min(1260px, calc(100% - 112px)); margin-inline: auto; }
.site-header { height: 115px; display: flex; align-items: center; gap: 42px; border-bottom: 1px solid var(--line); }
.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand > svg { width: 30px; height: 30px; color: var(--green); }
.site-brand > .site-wordmark { width: 136px; height: 30px; color: var(--ink); }
.site-header nav { display: flex; gap: 28px; margin-left: auto; color: var(--muted); font-size: 13px; }
.site-header nav a:hover, .sign-in:hover, .text-link:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.header-actions { display: flex; align-items: center; gap: 26px; }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; }
.theme-toggle:hover { background: var(--inset); }
.sign-in { font-size: 13px; display: inline-flex; gap: 14px; align-items: center; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; padding-block: 76px 56px; align-items: center; }
.hero-copy { padding-bottom: 12px; }
h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 5vw, 74px); font-weight: 400; line-height: 1.04; letter-spacing: -.055em; margin: 0 0 16px; }
.section-subtitle { color: var(--rust); font-size: 13px; line-height: 1.7; }
.hero-copy > .section-subtitle { margin-bottom: 23px; }
.intro { max-width: 385px; font-size: 16px; color: var(--muted); line-height: 1.75; }
.continuation { margin-top: 13px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 34px; padding: 12px 19px; border: 1px solid var(--action); border-radius: 12px; font-size: 14px; line-height: 1.5; font-weight: 500; }
.primary { background: var(--action); color: var(--action-ink); }
.primary:hover { background: color-mix(in srgb, var(--action) 90%, var(--ink)); }
.hero-copy > .button { margin-top: 30px; }
.invitation-note { color: var(--muted); font-size: 12px; margin-top: 12px; }
.hero-colophon { display: flex; align-items: center; gap: 17px; margin-top: 43px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.hero-colophon svg { width: 23px; height: 23px; color: var(--rust); }
.specimen { min-width: 0; }
.specimen-caption { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-bottom: 12px; padding-inline: 1px; }
.specimen-caption > span:last-child { font-size: 10px; }
.artifact-desk { border: 1px solid var(--line); border-radius: 17px; background: var(--paper); overflow: hidden; }
.artifact-chrome { display: flex; align-items: center; gap: 9px; border-bottom: 1px solid var(--fine-line); padding: 13px 20px; font: 11px/1.5 ui-monospace, SFMono-Regular, monospace; }
.file-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.file-kind { margin-left: auto; color: var(--muted); font: 10px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.artifact-body { display: grid; padding: 23px 24px 20px; min-height: 441px; }
.artifact-body > [role=tabpanel] { grid-area: 1 / 1; min-width: 0; }
.artifact-body > [hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.study-heading { display: flex; align-items: baseline; gap: 15px; }
.study-heading h2 { font: 400 29px/1.3 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
.study-heading > span { font-size: 11px; color: var(--muted); margin-left: auto; }
.geometry-study { width: 100%; height: 310px; color: var(--rust); }
.study-grid { fill: none; stroke: var(--fine-line); stroke-width: .7; }
.study-grid path { stroke-dasharray: 2 5; }
.study-curves { fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linejoin: round; }
.study-curves path:nth-child(2) { opacity: .55; }
.study-curves path:nth-child(3) { opacity: .25; }
.study-curves[data-appearance=filled] path:first-child { fill: color-mix(in srgb, currentColor 12%, transparent); }
.study-center { fill: currentColor; }
.study-annotation { fill: var(--muted); font: 9px ui-monospace, SFMono-Regular, monospace; }
.study-controls { display: flex; align-items: end; gap: 17px; border-top: 1px solid var(--fine-line); padding-top: 14px; }
.petal-control { display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; font-size: 12px; flex: 1; min-width: 0; }
.petal-control output { color: var(--rust); font-family: ui-monospace, SFMono-Regular, monospace; }
.petal-control input { grid-column: 1/-1; display: block; width: 100%; margin: 5px 0 2px; accent-color: var(--rust); cursor: pointer; height: 13px; }
.appearance-switch { display: flex; padding: 2px; border: 1px solid var(--line); border-radius: 7px; }
.appearance-switch button { font-size: 11px; padding: 5px 8px; min-height: 30px; border-radius: 5px; }
.appearance-switch button[aria-pressed=true] { background: var(--inset); }
.reset-study { font-size: 11px; min-height: 36px; color: var(--muted); padding: 6px 0 6px 3px; }
.reset-study:hover { color: var(--green); text-decoration: underline; }
.file-tabs { display: flex; border-top: 1px solid var(--line); background: var(--canvas); }
.file-tabs button { flex: 1; padding: 13px 9px; font: 10px/1.5 ui-monospace, SFMono-Regular, monospace; color: var(--muted); white-space: nowrap; border-right: 1px solid var(--line); }
.file-tabs button:last-child { border-right: 0; }
.file-tabs button span { margin-right: 7px; opacity: .6; font-size: 9px; }
.file-tabs button[aria-selected=true] { color: var(--ink); background: var(--paper); box-shadow: inset 0 2px var(--green); }
.file-tabs button:hover { color: var(--ink); }
.specimen-footnote { font-size: 11px; color: var(--muted); margin: 12px 0 0 2px; }
.handwritten-arrow { color: var(--rust); font-size: 20px; margin-right: 8px; line-height: 0; }
.document-label { font: 10px/1.6 ui-monospace, SFMono-Regular, monospace; color: var(--muted); }
.markdown-example { padding: 6px 4px 4px; }
.markdown-example h2 { font: 400 32px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.04em; margin: 18px 0; }
.markdown-example p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.markdown-example blockquote { margin: 22px 0; border-left: 2px solid var(--rust); padding-left: 17px; font: 400 20px/1.5 Georgia, "Times New Roman", serif; }
.markdown-example h3 { font-size: 13px; font-weight: 500; margin-bottom: 7px; }
.markdown-example code { display: block; font: 11px/1.6 ui-monospace, SFMono-Regular, monospace; padding: 12px 14px; background: var(--inset); border-radius: 6px; margin: 12px 0; }
.markdown-example .document-footnote, .document-footnote { font-size: 10px; line-height: 1.6; color: var(--muted); margin-top: 22px; }
.json-heading { display: flex; justify-content: space-between; align-items: center; padding-top: 6px; }
.json-valid { font-size: 9px; color: var(--green); }
.json-example { font: 12px/2 ui-monospace, SFMono-Regular, monospace; margin: 38px 0 34px; overflow-x: auto; }
.json-example span { color: var(--data); }
.json-example b { font-weight: 400; color: var(--rust); }
.format-index { border-block: 1px solid var(--line); padding-block: 23px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 12px; }
.format-index p { color: var(--ink); }
.format-index i { font-style: normal; padding-inline: 13px; color: var(--line); }
.link-section { padding-block: 92px 94px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; }
.section-side h2 { font: 400 45px/1.09 Georgia, "Times New Roman", serif; letter-spacing: -.045em; margin-top: 0; }
.section-side > .section-subtitle { margin-top: 15px; }
.section-side > p:last-of-type { color: var(--muted); max-width: 340px; font-size: 14px; line-height: 1.85; margin-top: 23px; }
.link-details { padding-top: 7px; }
.address-specimen { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.address-specimen > p { font: 21px/1.5 ui-monospace, SFMono-Regular, monospace; letter-spacing: -.035em; margin-top: 14px; white-space: nowrap; }
.address-specimen > p > span { color: var(--rust); }
.address-specimen b { color: var(--muted); font-weight: 400; }
.sharing-diagrams { display: grid; gap: 0; }
.sharing-diagrams article { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 25px; padding-block: 23px; border-bottom: 1px solid var(--fine-line); }
.sharing-diagrams svg { width: 100%; height: 100px; overflow: visible; color: var(--ink); }
.diagram-line { fill: none; stroke: currentColor; stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.diagram-accent { fill: var(--rust); }
.diagram-label { fill: var(--muted); font: 9px ui-monospace, SFMono-Regular, monospace; }
.diagram-infinity { fill: var(--rust); font: 25px Georgia, serif; }
.sharing-diagrams h3 { font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.sharing-diagrams p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.agent-section { background: var(--inset); border-block: 1px solid var(--line); }
.agent-inner { padding-block: 74px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 26px; margin-top: 24px; font-size: 13px; }
.handoff-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 25px 30px 23px; }
.handoff-label { display: flex; justify-content: space-between; align-items: center; padding-bottom: 15px; border-bottom: 1px solid var(--line); }
.handoff-label svg { width: 20px; height: 20px; color: var(--rust); }
.handoff-row { display: grid; grid-template-columns: 55px 1fr; gap: 12px; padding-block: 15px; border-bottom: 1px solid var(--fine-line); font-size: 12px; }
.handoff-row > span { color: var(--muted); font: 10px/1.9 ui-monospace, SFMono-Regular, monospace; }
.handoff-row code { font: 12px/1.7 ui-monospace, SFMono-Regular, monospace; }
.handoff-row small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.handoff-result { display: flex; align-items: center; gap: 40px; font-size: 22px; color: var(--green); padding-block: 16px; }
.handoff-result code { font: 15px/1.5 ui-monospace, SFMono-Regular, monospace; }
.connection-note { font-size: 11px; color: var(--muted); line-height: 1.8; border-top: 1px solid var(--line); padding-top: 15px; }
.closing { display: flex; align-items: center; gap: 26px; padding-block: 64px; }
.closing > svg { width: 47px; height: 47px; color: var(--green); }
.closing h2 { font: 400 33px/1.2 Georgia, "Times New Roman", serif; letter-spacing: -.045em; }
.closing p { font-size: 12px; color: var(--muted); margin-top: 7px; }
.closing > .button { margin-left: auto; }
.site-footer { border-top: 1px solid var(--line); display: flex; gap: 34px; padding-block: 24px 30px; font-size: 11px; color: var(--muted); }
.site-footer > span:nth-child(2) { margin-left: auto; }
.site-footer a { display: inline-flex; align-items: center; gap: 15px; color: var(--ink); }
[hidden] { display: none !important; }
@media(min-width: 1550px) { .hero { padding-block: 100px 72px; } }
@media(max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .hero, .link-section, .agent-inner { gap: 38px; }
  .hero { grid-template-columns: 1fr 1.12fr; }
  h1 { font-size: 58px; }
  .hero-colophon { margin-top: 30px; }
  .artifact-body { padding-inline: 18px; }
  .study-controls { gap: 11px; }
  .file-tabs button { font-size: 9px; }
  .file-tabs button span { display: none; }
  .format-index i { padding-inline: 7px; }
  .address-specimen > p { font-size: 19px; }
  .section-side h2 { font-size: 40px; }
}
@media(max-width: 800px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 86px; gap: 25px; }
  .site-header nav { display: none; }
  .header-actions { margin-left: auto; gap: 18px; }
  .hero { grid-template-columns: 1fr; padding-block: 46px 34px; gap: 36px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(48px, 8.4vw, 68px); margin-block: 25px 22px; }
  .intro { max-width: 450px; font-size: 15px; }
  .hero-copy > .button { margin-top: 24px; }
  .hero-colophon { display: none; }
  .specimen { width: min(560px, 100%); justify-self: center; }
  .artifact-body { min-height: 441px; padding-inline: 23px; }
  .file-tabs button { font-size: 10px; }
  .format-index { flex-direction: column; gap: 9px; font-size: 11px; padding-block: 19px; }
  .format-index i { padding-inline: 8px; }
  .link-section, .agent-inner { grid-template-columns: 1fr; gap: 34px; padding-block: 52px; }
  .section-side h2 { font-size: 39px; }
  .section-side > p:last-of-type { max-width: 480px; }
  .address-specimen > p { font-size: clamp(17px, 4.7vw, 27px); }
  .handoff-sheet { padding-inline: 25px; }
  .closing { flex-wrap: wrap; padding-block: 45px; gap: 19px; }
  .closing h2 { font-size: 30px; }
  .closing > .button { margin-left: 0; }
  .site-footer { flex-wrap: wrap; gap: 10px 20px; }
  .site-footer > span:first-child { flex-basis: 100%; }
  .site-footer > span:nth-child(2) { margin-left: 0; margin-right: auto; }
}
@media(max-width: 420px) {
  .site-brand { gap: 7px; }
  .site-brand > svg { width: 25px; height: 25px; }
  .site-brand > .site-wordmark { width: 107px; height: 25px; }
  .header-actions { gap: 14px; }
  .sign-in { font-size: 12px; gap: 8px; }
  .theme-toggle { width: 34px; height: 34px; }
  .artifact-body { padding-inline: 16px; min-height: 424px; }
  .study-heading h2 { font-size: 27px; }
  .study-heading > span { font-size: 10px; }
  .geometry-study { height: 292px; }
  .study-controls { gap: 10px; }
  .appearance-switch button { padding-inline: 6px; }
  .file-tabs button { font-size: 9px; padding-inline: 5px; }
  .specimen-footnote { font-size: 10px; }
  .format-index p { font-size: 10px; }
  .format-index i { padding-inline: 5px; }
  .json-example { font-size: 11px; }
  .closing > svg { width: 37px; height: 37px; }
  .closing h2 { font-size: 27px; }
  .closing p { font-size: 11px; }
}

@media(max-width:1100px) { .sharing-diagrams article { grid-template-columns: 130px 1fr; gap: 18px; } }
@media(max-width:800px) { .sharing-diagrams article { grid-template-columns: 150px 1fr; } }
@media(max-width:420px) { .sharing-diagrams article { grid-template-columns: 110px 1fr; gap: 18px; } .sharing-diagrams h3 { font-size: 12px; } .sharing-diagrams p { font-size: 11px; } }
@media(prefers-reduced-motion:reduce) { html { scroll-behavior: auto; } }

[data-petal-prose] { display: inline-block; min-width: 8ch; white-space: nowrap; }

.cli-section { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 56px; padding-block: 82px; }
.cli-section > .section-side { min-width: 0; }
.cli-install { margin-top: 22px; }
.cli-install p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.cli-install pre { margin: 10px 0 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: var(--ink); font: 12px/1.9 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.cli-install code { font: inherit; }
.cli-details { display: grid; gap: 12px; margin-top: 26px; font-size: 12px; color: var(--muted); }
.cli-details code { color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.terminal-demo { --terminal-paper: light-dark(#faf9f5, #191d20); --terminal-chrome: light-dark(#eeede8, #24292c); --terminal-ink: light-dark(#293036, #e6e7e1); --terminal-muted: light-dark(#73797b, #9ca6a9); background: var(--terminal-paper); color: var(--terminal-ink); border: 1px solid light-dark(#cfd0c8, #424b50); border-radius: 12px; corner-shape: squircle; box-shadow: 0 16px 42px light-dark(#252a2510, #00000025); overflow: hidden; min-width: 0; }
.terminal-chrome { display: flex; align-items: center; gap: 14px; padding: 15px 18px; font-size: 11px; color: var(--terminal-muted); background: var(--terminal-chrome); }
.terminal-lights { display: flex; gap: 5px; }
.terminal-lights i { width: 7px; height: 7px; border: 1px solid light-dark(#acb1ac, #68747a); border-radius: 50%; }
.terminal-lights i:first-child { background: light-dark(#d2a293, #b88778); border-color: transparent; }
.terminal-tabs { display: flex; gap: 4px; padding: 9px 12px; border-bottom: 1px solid light-dark(#e2e3dc, #343c40); overflow-x: auto; }
.terminal-tabs button { padding: 7px 12px; border: 0; background: transparent; border-radius: 5px; color: var(--terminal-muted); font: inherit; font-size: 11px; white-space: nowrap; cursor: pointer; }
.terminal-tabs button[aria-selected="true"] { color: var(--terminal-ink); background: light-dark(#e9e9e2, #333c40); }
.terminal-demo button:focus-visible, .terminal-demo [role="tabpanel"]:focus-visible { outline: 2px solid var(--rust); outline-offset: -3px; }
.terminal-screen { height: 344px; padding: 22px; overflow: auto; font: 12px/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-variant-numeric: tabular-nums; contain: layout paint; }
.terminal-prompt { display: grid; grid-template-columns: auto auto 1fr; align-items: start; gap: 8px; margin-bottom: 18px; }
.terminal-prompt code { font: inherit; overflow-wrap: anywhere; white-space: pre-wrap; min-width: 0; }
.terminal-prompt-mark { color: var(--rust); }
.terminal-directory { color: var(--terminal-muted); }
.terminal-output { margin: 0; font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; }
.terminal-line { display: block; min-height: 1.8em; }
.terminal-success { color: light-dark(#42654d, #b8cead); }
.terminal-spinner { display: inline-block; width: 1ch; }
.terminal-caret { display: none; color: var(--terminal-muted); }
.terminal-demo[data-phase="typing"] .terminal-caret { display: inline; animation: terminal-caret 800ms steps(2) infinite; }
.terminal-footer { display: flex; align-items: center; gap: 16px; padding: 13px 18px; border-top: 1px solid light-dark(#e2e3dc, #343c40); color: var(--terminal-muted); min-height: 47px; }
.terminal-footer button { padding: 0; background: none; border: 0; color: inherit; font: inherit; font-size: 11px; cursor: pointer; white-space: nowrap; }
.terminal-footer button:hover { color: var(--terminal-ink); }
.terminal-footer button:last-child { min-width: 85px; text-align: right; }
.terminal-status { margin-right: auto; font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.terminal-transcript { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: pre; }
@keyframes terminal-caret { 50% { opacity: 0; } }
@media(max-width:1100px) { .cli-section { gap: 34px; grid-template-columns: .85fr 1.15fr; } .terminal-screen { padding: 18px; font-size: 11px; } }
@media(max-width:800px) { .cli-section { grid-template-columns: 1fr; gap: 32px; padding-block: 52px; } .terminal-screen { font-size: 12px; } }
@media(max-width:420px) { .terminal-screen { height: 354px; padding: 18px 14px; font-size: 11px; line-height: 1.9; } .terminal-prompt { grid-template-columns: auto 1fr; } .terminal-directory { display: none; } .terminal-chrome { padding-inline: 14px; } .terminal-tabs { padding-inline: 7px; } .terminal-tabs button { padding-inline: 10px; } .terminal-footer { padding-inline: 14px; gap: 13px; } .terminal-status { max-width: 95px; } }
@media(prefers-reduced-motion:reduce) { .terminal-caret { animation: none !important; } }
