:root {
  color-scheme: light;
  --paper: #f7f7f0;
  --panel: #eeefe4;
  --ink: #1b261e;
  --muted: #526055;
  --line: #c9cfc1;
  --wire: #a4ac9d;
  --green: #266442;
  --pulse: #aee969;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box }
html { scroll-behavior: smooth }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--sans) }
a { color: inherit; text-decoration-thickness: .075em; text-underline-offset: .22em }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid #34764f; outline-offset: 4px }
button { font: inherit }
.skip { position: absolute; transform: translateY(-160%); z-index: 4; left: 16px; top: 12px; padding: 8px; background: white }
.skip:focus { transform: none }
.topbar, footer { display: flex; justify-content: space-between; align-items: center; min-height: 65px; padding: 0 max(5vw,18px); border-bottom: 1px solid var(--line); font: 600 .8rem/1.45 var(--mono) }
.topbar nav { display: flex; align-items: center; gap: clamp(14px,3vw,40px) }
.topbar a, footer a { text-decoration: none }
.topbar a:hover, footer a:hover { text-decoration: underline }
.brand { display: inline-flex; gap: .55rem; align-items: center; white-space: nowrap }
.brandmark { display: inline-grid; place-items: center; background: var(--ink); color: var(--pulse); min-width: 32px; height: 27px; padding: 0 4px }
.nav-docs { border: 1px solid var(--ink); padding: 7px 10px }
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(600px,72vw,770px); overflow: hidden; border-bottom: 1px solid var(--line); background-image: radial-gradient(#8b9b87 0.6px, transparent .6px); background-size: 15px 15px }
.hero-copy { position: relative; text-align: center; z-index: 1; background: var(--paper); border: 1px solid var(--ink); box-shadow: 7px 7px 0 #dce5d2; padding: clamp(25px,4vw,47px) clamp(22px,6.2vw,92px); max-width: calc(100vw - 42px) }
.hero h1 { font: 800 clamp(3.2rem,8.4vw,8.9rem)/.84 var(--mono); letter-spacing: -.101em; margin: 0 0 .24em; text-align: left; text-shadow: 3px 3px var(--paper),4px 4px var(--ink) }
.hero h1 span { color: var(--green); text-shadow: none }
.hero p { color: var(--muted); font: 500 clamp(.89rem,1.3vw,1.12rem)/1.5 var(--mono); margin: 15px 0 21px }
.hero-actions { display: flex; justify-content: center; align-items: center; gap: 20px; font: 700 .77rem/1.35 var(--mono); flex-wrap: wrap }
.primary { display: inline-flex; gap: .65rem; justify-content: space-between; background: var(--ink); color: #f7f8ed; border: 1px solid var(--ink); padding: 11px 13px; text-decoration: none }
.primary:hover { color: var(--ink); background: var(--pulse) }
.circuit { position: absolute; inset: 0; overflow: hidden; color: #3a5543; max-width: 1600px; margin: auto }
.station { position: absolute; display: flex; flex-direction: column; align-items: center; background: var(--paper); border: 1px dashed #91a28e; padding: 10px 15px; min-width: 110px; box-shadow: 4px 4px 0 #e1e6d9 }
.station pre { margin: 0; font: .85rem/1.13 var(--mono) }
.station span { font: .68rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-top: 8px }
.station::before { content: ''; position: absolute; width: 5px; height: 5px; left: 7px; top: 7px; background: var(--green); box-shadow: 0 0 0 2px #dce9d5; animation: indicator 5s steps(1,end) infinite }
.station.db::before,.station.auth::before { animation-delay: -2s }
.station.api::before,.station.files::before { animation-delay: -3.2s }
.station.is-active { background: #e7f1dc; border-color: #427957; color: #173d2b }
.fe { left: 9%; top: 12% } .function { left: 34%; top: 6% } .db { right: 12%; top: 10% }
.cron { right: 4%; top: 42% } .api { left: 4%; top: 45% }
.files { left: 20%; bottom: 8% } .auth { right: 21%; bottom: 8% }
.wire { position: absolute; overflow: hidden; opacity: .8 }
.h { border-top: 1px dashed var(--wire); height: 7px }
.v { border-left: 1px dashed var(--wire); width: 7px }
.wire::after { position: absolute; content: ''; width: 6px; height: 5px; background: var(--green); box-shadow: 0 0 0 2px var(--pulse); border-radius: 2px; left: 1px; top: 1px }
.h::after { animation: signal-x 6s linear infinite }
.v::after { animation: signal-y 5s linear infinite }
.w1 { left: 12%; width: 39%; top: 25% }.w2 { right: 13%; width: 30%; top: 23% }.w3 { left: 8%; width: 47%; top: 49% }.w4 { right: 8%; width: 35%; top: 51% }
.w5 { left: 42%; height: 68%; top: 13% }.w6 { right: 39%; height: 64%; top: 18% }
.w7 { left: 25%; width: 24%; bottom: 16% }.w8 { right: 25%; width: 25%; bottom: 17% }
.w2::after,.w5::after,.w7::after { animation-delay: -2.7s }.w3::after,.w6::after { animation-delay: -4s }
@keyframes signal-x { from { left: 0 } to { left: calc(100% - 5px) } }
@keyframes signal-y { from { top: 0 } to { top: calc(100% - 5px) } }
@keyframes indicator { 0%, 74% { opacity: 1 } 75%, 84% { opacity: .25 } 85% { opacity: 1 } }
.section { width: min(1120px,90%); margin: 0 auto; padding: clamp(46px,7vw,100px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 16px }
.example { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); gap: clamp(25px,6vw,90px); align-items: center }
.eyebrow,.stack { color: var(--green); font: 700 .73rem/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase }
h2,h3 { letter-spacing: -.04em; line-height: 1.08 }
h2 { font-size: clamp(2.35rem,4.8vw,4.2rem); margin: 0 0 16px }
h3 { font-size: 1.38rem; margin: 0 0 7px }
p { margin: 0 0 1rem }
.example p:not(.eyebrow), .section-head p, .agent-links p { max-width: 41ch; color: var(--muted) }
.text-link,.bundle-panel a { color: var(--green); font: 650 .81rem/1.4 var(--mono) }
.terminal { border: 1px solid var(--ink); background: #1a251c; color: #eaefdf; box-shadow: 7px 7px 0 #d5ddcf; min-width: 0 }
.terminal-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 7px 14px; border-bottom: 1px solid #465447; font: 650 .78rem/1.35 var(--mono) }
.terminal-bar i { display: inline-block; background: var(--pulse); height: 7px; width: 7px; margin-right: 5px }
.terminal button { color: #f1f5ea; background: transparent; border: 1px solid #829382; cursor: pointer; font: inherit; padding: 4px 8px }
.terminal button:hover { color: var(--ink); background: var(--pulse) }
.terminal pre { padding: clamp(16px,3vw,30px); margin: 0; min-height: 236px; font: .86rem/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere }
.terminal code { font: inherit }
.prompt { color: var(--pulse) }.dim { color: #a2bcaa }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 20px }
.section-head h2, .section-head p { margin-bottom: 0 }
.primitive-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 0; list-style: none; margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line) }
.primitive-grid li a { display: grid; grid-template-columns: 39px minmax(0,1fr) 15px; gap: 16px; padding: clamp(15px,3vw,26px); text-decoration: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); height: 100% }
.primitive-grid a:hover { background: #e9eee2 }.primitive-grid p { margin: 0; color: var(--muted); font-size: .93rem }
.icon { display: grid; place-items: center; width: 38px; height: 36px; border: 1px solid #899c8c; color: var(--green); background: var(--panel); font: 700 .75rem/1 var(--mono) }
.arrow { color: var(--green); font: 1rem var(--mono) }
.bundle-box { display: grid; grid-template-columns: minmax(155px,1fr) 3fr; border: 1px solid var(--line); min-height: 260px }
.bundle-tabs { display: flex; flex-direction: column; border-right: 1px solid var(--line) }
.bundle-tab { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; padding: 13px; cursor: pointer; color: var(--ink); font: 650 .86rem/1.3 var(--mono) }
.bundle-tab:last-child { border-bottom: 0 }
.bundle-tab[aria-selected="true"] { background: var(--ink); color: #f9fbf4 }
.bundle-panel { padding: clamp(18px,4vw,44px); max-width: 59ch }
.bundle-panel h3 { font-size: clamp(1.7rem,3vw,2.4rem) }.bundle-panel p:not(.stack) { color: var(--muted) }
.agent-links { display: flex; justify-content: space-between; align-items: center; gap: 20px }
.agent-links h2 { font-size: clamp(2rem,4vw,3rem) }.agent-links nav { display: grid; gap: .55rem; min-width: 14rem; font: 650 .78rem/1.5 var(--mono) }
footer { border-bottom: 0; border-top: 1px solid var(--line) }
.docs-content { width: min(820px,90%); margin: 0 auto; padding: 52px 0 75px }
.docs-content h1 { font-size: clamp(2.7rem,6vw,5.2rem); letter-spacing: -.06em; line-height: 1; margin: 0 0 15px }
.docs-content h2 { margin-top: 45px; font-size: 2rem }
.docs-content h3 { margin-top: 25px }.docs-content pre { padding: 15px; border: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; background: #e9eee2 }
.docs-content code { font: .88em var(--mono); overflow-wrap: anywhere }
.docs-content li { margin: .4rem 0 }
.docs-content .resources { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; padding: .8rem 0; font: 650 .85rem monospace }
@media (max-width:760px) {
  .hero { min-height: 645px }.hero h1 { font-size: clamp(3.3rem,10vw,6rem) }.fe { left: 6%; top: 7% }
  .function { left: 39%; top: 4% }.db { right: 6%; top: 8% }.api { left: 5%; top: auto; bottom: 12% }
  .cron { right: 7%; top: auto; bottom: 10% }.files { left: 40%; bottom: 6% }.auth { display: none }
  .station { min-width: 82px; padding: 7px 9px }.station pre { font-size: .65rem }.station span { font-size: .58rem }
  .example { grid-template-columns: minmax(0,1fr) }.section-head { align-items: start; flex-direction: column; gap: 8px }
}
@media (max-width:490px) {
  .topbar { min-height: 56px }.topbar nav { gap: 12px }.topbar nav a:not(.nav-docs) { display:none }
  .brand { white-space: normal }.hero { min-height: 570px }.hero-copy { padding: 27px 19px }.hero h1 { font-size: clamp(2.8rem,10.4vw,4.9rem) }
  .hero-copy p { margin-top: 14px }.hero-actions { gap: 13px }.function { top: 5% }
  .primitive-grid { grid-template-columns: minmax(0,1fr) }.bundle-box { grid-template-columns: minmax(0,1fr) }
  .bundle-tabs { flex-direction: row; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line) }
  .bundle-tab { flex: 1 1 32%; padding: 10px; border-bottom: 0; text-align: center }
  .agent-links { align-items: start; flex-direction: column }.agent-links nav { min-width: 0 }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto } .wire::after,.station::before { animation: none }
}
