:root {
  --plum: #6d285f;
  --plum-deep: #32132c;
  --spark: #ff6257;
  --plum-ink: #201b20;
  --cream: #fbf8f4;
  --paper: #fffdfb;
  --line: #e8dfE5;
  --muted: #746b72;
  --green: #5c7b68;
}

* { box-sizing: border-box; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--plum-ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.6; }
a { color: inherit; }
.site-header { min-height: 70px; margin: 0; padding: 0 max(28px, calc((100vw - 1240px) / 2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; color: white; background: var(--plum-deep); border-bottom: 1px solid rgba(255,255,255,.13); }
.wordmark { display: inline-flex; align-items: center; gap: 10px; width: fit-content; color: inherit; font-family: Georgia, serif; font-size: 24px; font-weight: 700; text-decoration: none; }
.wordmark-mark { display: block; width: 34px; height: 34px; }
.site-header .wordmark-mark { width: 40px; height: 40px; }
.primary-nav { display: flex; align-items: center; gap: 30px; }
.primary-nav a, .footer-links a { color: #514951; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header .primary-nav a { color: #eadde7; }
.primary-nav a:hover, .footer-links a:hover { color: var(--spark); }
.header-action { justify-self: end; color: var(--spark); font-size: 14px; font-weight: 800; text-decoration: none; }
.hero { position: relative; margin: 0; padding: 76px max(28px, calc((100vw - 1120px) / 2)) 88px; overflow: hidden; color: white; background: var(--plum-deep); text-align: left; }
.hero::after { position: absolute; right: -90px; bottom: -190px; width: 430px; height: 430px; content: ""; border: 74px solid rgba(255,98,87,.12); border-radius: 50% 50% 46% 54%; transform: rotate(-16deg); }
.plumb-line { --plumb-drop: 320px; position: absolute; z-index: 2; top: 0; right: max(34px, calc((100vw - 1120px) / 2)); display: flex; flex-direction: column; align-items: center; width: 74px; transform-origin: 50% 0; animation: plumb-settle 4.2s both; }
.plumb-line-cord { display: block; width: 2px; height: var(--plumb-drop); background: linear-gradient(rgba(255,255,255,.25), rgba(255,255,255,.9)); transform-origin: 50% 0; }
.plumb-line img { display: block; width: 64px; height: 64px; margin-top: -1px; filter: drop-shadow(0 10px 15px rgba(0,0,0,.28)); }
@keyframes plumb-settle {
  0% { transform: rotate(-72deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  30% { transform: rotate(20deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  50% { transform: rotate(-11deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  66% { transform: rotate(5.5deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  79% { transform: rotate(-2.5deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  90% { transform: rotate(.8deg); animation-timing-function: cubic-bezier(.45,0,.55,1); }
  100% { transform: rotate(0); }
}
.hero-kicker, .eyebrow, .docs-kicker { margin: 0 0 16px; color: var(--plum); font-size: 12px; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.hero-kicker { color: var(--spark); }
.hero h1 { position: relative; z-index: 1; max-width: 950px; margin: 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: clamp(56px, 7.6vw, 98px); font-weight: 850; letter-spacing: -.065em; line-height: .92; }
.hero-copy { position: relative; z-index: 1; max-width: 760px; margin: 28px 0 0; color: #d8cbd4; font-size: clamp(18px, 2vw, 23px); line-height: 1.48; }
.hero-actions { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.button-primary { color: var(--plum-deep); background: var(--spark); }
.button-primary:hover { background: #ff796f; }
.button-secondary { color: white; border-color: rgba(255,255,255,.36); background: rgba(255,255,255,.06); }
.button-light { color: var(--plum-deep); background: white; }
.hero-note { position: relative; z-index: 1; display: flex; align-items: center; justify-content: flex-start; gap: 9px; margin: 22px 0 0; color: #bfaeba; font-size: 12px; }
.hero-note span { width: 7px; height: 7px; background: var(--spark); border-radius: 50%; box-shadow: 0 0 0 4px rgba(255,98,87,.13); }
.section { padding: 84px max(28px, calc((100vw - 1120px) / 2)); }
.feature-section { background: var(--cream); border-block: 1px solid var(--line); }
.section-heading { max-width: 690px; margin-bottom: 58px; }
.section-heading h2, .code-story h2, .closing-cta h2, .page-heading h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.section-heading > p:last-child, .code-story > p:last-child { color: var(--muted); font-size: 18px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #dcd2d9; }
.feature-grid article { padding: 32px 32px 12px 0; }
.feature-grid article + article { padding-left: 32px; border-left: 1px solid #dcd2d9; }
.feature-number { color: #a3939f; font: 12px/1 ui-monospace, monospace; }
.feature-grid h3 { margin: 28px 0 10px; font-family: Georgia, serif; font-size: 26px; font-weight: 600; }
.feature-grid p { margin: 0; color: var(--muted); }
.product-demo { background: white; border-bottom: 8px solid var(--spark); }
.demo-flow { display: grid; grid-template-columns: .92fr 1.16fr .92fr; border: 2px solid var(--plum-deep); border-radius: 5px; overflow: hidden; box-shadow: 12px 12px 0 rgba(109,40,95,.13); }
.demo-panel { min-width: 0; background: #fff; }
.demo-panel + .demo-panel { border-left: 1px solid #dcd2d9; }
.demo-panel > header { min-height: 58px; padding: 0 18px; display: flex; align-items: center; gap: 9px; background: var(--cream); border-bottom: 1px solid #e5dce2; }
.demo-panel > header span { display: grid; place-items: center; width: 22px; height: 22px; color: var(--plum-deep); background: var(--spark); border-radius: 50%; font-size: 11px; font-weight: 850; }
.demo-panel > header strong { font-family: Georgia, serif; font-size: 17px; }
.demo-panel > header small { margin-left: auto; color: #8b7e87; font: 10px ui-monospace, monospace; }
.demo-code pre { min-height: 390px; margin: 0; padding: 28px 22px; color: #eadde7; background: var(--plum-deep); font: 12px/1.8 ui-monospace, monospace; white-space: pre-wrap; }
.editor-canvas { min-height: 390px; padding: 22px; display: grid; align-content: start; gap: 13px; }
.editor-canvas label { display: grid; gap: 5px; color: #5f555d; font-size: 11px; font-weight: 750; }
.editor-canvas input { width: 100%; padding: 9px 10px; color: #332c32; background: white; border: 1px solid #d8cfd5; border-radius: 5px; font: 13px inherit; }
.editor-toolbar { display: flex; gap: 7px; padding: 7px 9px; background: #f5f0f3; border: 1px solid #d8cfd5; border-bottom: 0; border-radius: 5px 5px 0 0; font-size: 11px; }
.editor-toolbar span { padding-left: 7px; border-left: 1px solid #d8cfd5; }
.editor-body { min-height: 84px; margin-top: -13px; padding: 11px; border: 1px solid #d8cfd5; border-radius: 0 0 5px 5px; font-size: 12px; line-height: 1.65; }
.editor-status { display: flex; align-items: center; justify-content: space-between; padding-top: 7px; }
.editor-status span { color: var(--green); font-size: 11px; font-weight: 750; }
.editor-status button { padding: 8px 12px; color: white; background: var(--plum); border: 0; border-radius: 5px; font-size: 11px; font-weight: 750; }
.render-code { padding: 18px; color: #eadde7; background: var(--plum-deep); font: 11px/1.7 ui-monospace, monospace; }
.rendered-card { margin: 24px 18px; padding: 25px 21px; background: #f7f1eb; border-radius: 4px; }
.rendered-card small { color: #946d45; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.rendered-card h3 { margin: 12px 0; font-family: Georgia, serif; font-size: 25px; line-height: 1.08; }
.rendered-card p { color: #675e64; font-size: 12px; }
.rendered-card a { color: var(--plum); font-size: 11px; font-weight: 750; text-decoration: none; }
.code-section { display: grid; grid-template-columns: .82fr 1.18fr; align-items: center; gap: 90px; }
.code-story p { max-width: 470px; }
.code-window { min-width: 0; margin: 0; overflow: hidden; color: #f6edf4; background: var(--plum-deep); border-radius: 5px; box-shadow: 10px 10px 0 rgba(109,40,95,.14); }
.code-window-bar { display: flex; align-items: center; gap: 7px; min-height: 46px; padding: 0 16px; background: #281023; border-bottom: 1px solid rgba(255,255,255,.09); }
.code-window-bar span { width: 9px; height: 9px; background: #8e6384; border-radius: 50%; }
.code-window-bar small { margin-left: 8px; color: #bda9b8; font: 11px ui-monospace, monospace; }
.code-window pre { margin: 0; padding: 26px; overflow-x: auto; font: 13px/1.8 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; }
.code-window figcaption { padding: 0 26px 22px; color: #bda9b8; font-size: 12px; }
.closing-cta { padding: 88px 28px; color: white; background: var(--plum); border-top: 8px solid var(--spark); text-align: center; }
.closing-cta .eyebrow { color: #dac2d4; }
.closing-cta h2 { max-width: 760px; margin: 0 auto; }
.closing-cta > p:not(.eyebrow) { max-width: 600px; margin: 24px auto 30px; color: #eadde7; font-size: 18px; }
.site-footer { max-width: 1240px; margin: 0 auto; padding: 52px 28px; display: grid; grid-template-columns: 1fr auto; gap: 22px; border-top: 1px solid var(--line); }
.wordmark-footer { font-size: 20px; }
.wordmark-footer .wordmark-mark { width: 29px; height: 29px; font-size: 16px; }
.site-footer p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.footer-links { display: flex; gap: 24px; align-items: start; }
.footer-note { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid var(--line); }
.standard-page { max-width: 900px; min-height: 65vh; margin: 0 auto; padding: 92px 28px 110px; }
.page-heading { margin-bottom: 54px; }
.page-summary, .docs-summary { max-width: 720px; color: var(--muted); font-size: 20px; }
.prose { font-size: 17px; }
.prose h2 { margin: 2.5em 0 .6em; font-family: Georgia, serif; font-size: 32px; line-height: 1.2; }
.prose h3 { margin: 2em 0 .5em; font-size: 21px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 28px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.25em; }
.prose a { color: var(--plum); }
.prose pre { padding: 22px; overflow-x: auto; color: #f6edf4; background: var(--plum-deep); border-radius: 9px; font: 13px/1.7 ui-monospace, monospace; }
.prose code { font-family: ui-monospace, monospace; }
.docs-shell { max-width: 1180px; min-height: 70vh; margin: 0 auto; padding: 72px 28px 110px; display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 82px; }
.docs-sidebar { position: sticky; top: 30px; align-self: start; }
.docs-sidebar nav { display: grid; gap: 4px; }
.docs-sidebar nav a { padding: 7px 10px; color: #625860; border-radius: 5px; font-size: 14px; text-decoration: none; }
.docs-sidebar nav a:hover { color: var(--plum); background: var(--cream); }
.docs-sidebar nav a.active { color: white; background: var(--plum); font-weight: 750; }
.docs-search { margin-bottom: 20px; }
.docs-search input { width: 100%; padding: 10px 12px; border: 1px solid #d8cfd5; border-radius: 5px; font: inherit; font-size: 13px; }
.docs-article h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(42px, 6vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.docs-toc { margin: 34px 0 42px; padding: 20px 24px; background: var(--cream); border-left: 4px solid var(--spark); }
.docs-toc strong { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.docs-toc ol { margin: 10px 0 0; padding-left: 20px; }
.docs-toc a { color: #625860; font-size: 14px; text-decoration: none; }
.docs-toc a:hover { color: var(--plum); }
.doc-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc-pagination a { display: grid; padding: 16px; color: var(--plum); background: var(--cream); border-radius: 6px; text-decoration: none; }
.doc-pagination .next { grid-column: 2; text-align: right; }
.doc-pagination small { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.manifesto-page { max-width: 1040px; }
.manifesto-page .page-heading { padding-bottom: 42px; border-bottom: 8px solid var(--spark); }
.manifesto-page .prose h2 { font-size: clamp(34px, 4vw, 48px); color: var(--plum); }
.roadmap-page { max-width: 1040px; }
.roadmap-page .prose { display: grid; grid-template-columns: 1fr 2fr; column-gap: 34px; }
.roadmap-page .prose h2 { margin: 0; padding: 28px 0; color: var(--plum); border-top: 1px solid var(--line); }
.roadmap-page .prose p { margin: 0; padding: 31px 0; border-top: 1px solid var(--line); }
.search-form label { display: block; margin-bottom: 8px; font-weight: 750; }
.search-form div { display: flex; }
.search-form input { flex: 1; min-width: 0; padding: 13px; border: 2px solid var(--plum-deep); font: inherit; }
.search-form button { padding: 0 20px; color: white; background: var(--plum); border: 0; font-weight: 800; }
.search-results { display: grid; gap: 10px; }
.search-results a { display: grid; gap: 5px; padding: 20px; border: 1px solid var(--line); text-decoration: none; }
.search-results span, .search-count { color: var(--muted); }
.document-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.document-card { display: grid; gap: 8px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; }
.document-card:hover { border-color: #beaabb; box-shadow: 0 12px 30px rgba(50,19,44,.06); }
.document-card span { font-family: Georgia, serif; font-size: 21px; font-weight: 600; }
.document-card small { color: var(--muted); font-size: 14px; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .primary-nav { display: none; }
  .hero { padding-block: 62px 72px; }
  .plumb-line { --plumb-drop: 260px; right: 20px; width: 52px; opacity: .72; }
  .plumb-line img { width: 46px; height: 46px; }
  .hero h1 { font-size: 56px; }
  .section { padding-block: 76px; }
  .feature-grid, .code-section, .docs-shell, .demo-flow { grid-template-columns: 1fr; }
  .demo-panel + .demo-panel { border-left: 0; border-top: 1px solid #dcd2d9; }
  .feature-grid article + article { padding-left: 0; border-left: 0; border-top: 1px solid #dcd2d9; }
  .feature-grid article { padding: 28px 0; }
  .code-section { gap: 42px; }
  .docs-sidebar { position: static; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
  .docs-shell { gap: 42px; }
  .roadmap-page .prose { grid-template-columns: 1fr; }
  .roadmap-page .prose p { padding-top: 0; border-top: 0; }
  .document-grid { grid-template-columns: 1fr; }
  .site-footer { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .plumb-line { animation: none; }
}
