:root {
  color-scheme: light;
  --brand-orange: #c94e1f;
  --brand-burgundy: #6d211f;
  --ink: #26211e;
  --muted: #756d67;
  --paper: #eee8e0;
  --surface: #fffdf9;
  --line: #ddd5cc;
  --brand-soft: #f5e3da;
  --code: #2c2927;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .18em; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.site-brand { display: flex; align-items: flex-end; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; }
.brand-logotype { width: 144px; }
.brand-lockup { text-decoration: none; }
.brand-lockup-logo { flex: none; }
.brand-lockup-tagline { color: var(--muted); font-weight: 500; }
.brand-lockup-horizontal { display: flex; align-items: flex-end; gap: 30px; }
.brand-lockup-horizontal .brand-lockup-logo { width: 230px; }
.brand-lockup-horizontal .brand-lockup-tagline { padding-bottom: 2px; font-size: 20px; line-height: 1; white-space: nowrap; }
.brand-lockup-vertical { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.brand-lockup-vertical .brand-lockup-logo { width: 190px; }
.brand-lockup-vertical .brand-lockup-tagline { font-size: 13px; line-height: 1.15; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 25px; font-size: 14px; }
.site-nav > a:not(.button) { text-decoration: none; }
.site-nav > a:not(.button):hover { color: var(--brand-orange); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--brand-burgundy);
  border-radius: 9px;
  font-weight: 750;
  text-decoration: none;
}
.button-small { min-height: 38px; padding-inline: 14px; font-size: 13px; }
.button-deep { color: var(--surface); background: var(--brand-burgundy); }
.button-deep:hover { background: #571918; }
.button-outline { color: var(--brand-burgundy); background: transparent; }
.button-outline:hover { background: var(--brand-soft); }

.hero {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 88px 0 102px;
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: center;
  gap: 74px;
}
.eyebrow { margin: 0; color: var(--brand-orange); font: 750 12px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { max-width: 700px; margin: 15px 0 0; font-size: clamp(48px, 5.2vw, 76px); line-height: .96; letter-spacing: -.055em; }
.hero-summary { max-width: 620px; margin: 25px 0 0; color: var(--muted); font-size: 19px; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 31px; }

.product-preview-trigger { position: relative; display: block; border-radius: 16px; color: inherit; text-decoration: none; }
.product-preview-trigger:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 6px; }
.product-frame { overflow: hidden; border: 1px solid #d2c9bf; border-radius: 16px; background: var(--surface); box-shadow: 0 28px 60px rgb(74 43 34 / 17%); transform: rotate(.45deg); transition: transform 180ms ease, box-shadow 180ms ease; }
.product-preview-trigger:hover .product-frame { box-shadow: 0 32px 68px rgb(74 43 34 / 23%); transform: translateY(-3px) rotate(0); }
.preview-invitation { position: absolute; right: 16px; bottom: 16px; padding: 8px 11px; border: 1px solid rgb(109 33 31 / 22%); border-radius: 999px; color: var(--brand-burgundy); background: rgb(255 253 249 / 92%); box-shadow: 0 5px 18px rgb(74 43 34 / 12%); font-size: 10px; font-weight: 800; }
.window-titlebar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 13px; background: #dfdad3; }
.window-titlebar span { width: 8px; height: 8px; border-radius: 50%; background: #b6ada4; }
.product-toolbar { min-height: 68px; display: flex; align-items: center; gap: 11px; padding: 12px 15px; background: #f4f1ea; }
.product-toolbar img { width: 34px; }
.document-identity { min-width: 0; display: flex; flex-direction: column; }
.document-identity strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.document-identity span { margin-top: 3px; color: var(--muted); font: 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.mock-action { margin-left: auto; padding: 8px 10px; border-radius: 7px; color: white; background: var(--brand-orange); font-size: 10px; font-weight: 750; }
.product-workspace { min-height: 294px; display: grid; grid-template-columns: 1.1fr .9fr; border-top: 1px solid var(--line); }
.tree-preview, .feedback-preview { padding: 21px 17px; }
.feedback-preview { border-left: 1px solid var(--line); background: #fffdfa; }
.pane-label { margin: 0 0 22px; color: var(--muted); font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; }
.tree-row { height: 28px; display: flex; align-items: center; gap: 8px; margin-bottom: 7px; padding: 0 9px; }
.tree-row.selected { background: var(--brand-soft); box-shadow: inset 4px 0 var(--brand-orange); }
.tree-row.nested { margin-left: 19px; }
.tree-row i { width: 7px; height: 7px; border: 1px solid #a89e95; border-radius: 2px; }
.tree-row span { width: 74%; height: 7px; border-radius: 99px; background: #d8d1ca; }
.tree-row.short span { width: 48%; }
.source-line { width: 62%; height: 8px; margin-bottom: 17px; border-radius: 99px; background: #d8d1ca; }
.feedback-box { min-height: 105px; padding: 13px; border: 1px solid #d8d0c7; border-radius: 9px; color: #5f5650; background: white; font-size: 11px; line-height: 1.5; }
.annotation-state { margin-top: 11px; color: var(--muted); font-size: 10px; }
.annotation-state b { display: inline-block; width: 7px; height: 7px; margin-right: 4px; border-radius: 50%; background: var(--brand-orange); }

.product-dialog { width: min(1180px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); padding: 0; overflow: hidden; border: 1px solid #cfc4ba; border-radius: 16px; color: var(--ink); background: var(--surface); box-shadow: 0 32px 90px rgb(38 33 30 / 32%); }
.product-dialog::backdrop { background: rgb(38 33 30 / 72%); backdrop-filter: blur(4px); }
.product-dialog-header { min-height: 52px; padding: 8px 10px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; background: var(--brand-burgundy); }
.gallery-position { color: rgb(255 253 249 / 72%); font: 750 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.dialog-close { min-height: 32px; padding: 0 10px; border: 0; border-radius: 7px; color: var(--surface); background: transparent; cursor: pointer; font-weight: 750; }
.dialog-close:hover { color: var(--surface); background: rgb(255 253 249 / 12%); }
.dialog-close:focus-visible { outline: 0; background: rgb(255 253 249 / 20%); }
.product-dialog-gallery { position: relative; min-height: 0; background: #e4ddd5; }
.product-slide { margin: 0; }
.product-slide[hidden] { display: none; }
.product-slide img { width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 145px); margin: 0 auto; object-fit: contain; }
.product-slide figcaption { min-height: 43px; padding: 11px 66px 13px; color: var(--muted); background: var(--surface); font-size: 11px; text-align: center; }
.product-slide figcaption strong { color: var(--ink); }
.gallery-control { position: absolute; z-index: 2; top: calc(50% - 21px); display: grid; width: 42px; height: 42px; place-items: center; padding: 0 0 3px; border: 1px solid rgb(109 33 31 / 24%); border-radius: 50%; color: white; background: rgb(109 33 31 / 86%); box-shadow: 0 5px 18px rgb(38 33 30 / 22%); cursor: pointer; font: 30px/1 Georgia, serif; }
.gallery-control:hover { background: var(--brand-orange); }
.gallery-control:focus-visible { outline: 3px solid var(--brand-orange); outline-offset: 2px; }
.gallery-previous { left: 14px; }
.gallery-next { right: 14px; }

.feature-grid { width: min(1180px, calc(100% - 48px)); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 16px 42px rgb(74 43 34 / 7%); }
.feature-grid article { min-height: 270px; padding: 34px; }
.feature-grid article + article { border-left: 1px solid var(--line); }
.feature-number { color: var(--brand-orange); font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.feature-grid h2 { margin: 58px 0 12px; font-size: 25px; letter-spacing: -.025em; }
.feature-grid p { margin: 0; color: var(--muted); line-height: 1.65; }

.workflow { width: min(1040px, calc(100% - 48px)); margin: 130px auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: start; }
.workflow h2 { margin: 13px 0 0; font-size: 42px; line-height: 1.05; letter-spacing: -.04em; }
.workflow ol { margin: 0; padding: 0; list-style: none; counter-reset: workflow; }
.workflow li { counter-increment: workflow; padding: 20px 0; display: grid; grid-template-columns: 40px minmax(0, 1fr); border-top: 1px solid var(--line); color: var(--muted); line-height: 1.6; }
.workflow li::before { content: "0" counter(workflow); grid-column: 1; color: var(--brand-orange); font: 750 11px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; }
.workflow li p { grid-column: 2; margin: 0; }
.workflow li span { color: var(--ink); font-weight: 750; }

.site-footer { width: min(1180px, calc(100% - 48px)); min-height: 136px; margin: 0 auto; display: flex; align-items: center; gap: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-source { margin-left: auto; }

.docs-page { min-height: 100vh; display: grid; grid-template-columns: 290px minmax(0, 1fr); background: var(--surface); }
.docs-sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 31px 28px 24px; border-right: 1px solid var(--line); background: #fbf8f4; }
.docs-brand { padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.docs-nav { margin-top: 24px; }
.docs-nav p { margin: 22px 10px 8px; color: var(--brand-orange); font: 750 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .09em; text-transform: uppercase; }
.docs-nav a { display: block; margin: 2px 0; padding: 9px 10px; border-radius: 7px; color: var(--muted); font-size: 13px; text-decoration: none; }
.docs-nav a:hover { color: var(--ink); background: #f2ece5; }
.docs-nav a[aria-current="page"] { color: var(--brand-burgundy); background: var(--brand-soft); font-weight: 750; }
.docs-github { margin-top: auto; color: var(--muted); font-size: 11px; }
.docs-mobile-header { display: none; }
.docs-content { width: min(780px, calc(100% - 64px)); margin: 0 auto; padding: 86px 0 130px; }
.docs-content > h1 { margin: 14px 0 0; font-size: clamp(46px, 6vw, 68px); line-height: 1; letter-spacing: -.05em; }
.docs-lede { max-width: 680px; margin: 23px 0 60px; color: var(--muted); font-size: 19px; line-height: 1.65; }
.docs-content section { padding: 30px 0; border-top: 1px solid var(--line); scroll-margin-top: 24px; }
.docs-content section h2 { margin: 0 0 14px; font-size: 27px; letter-spacing: -.025em; }
.docs-content section h3 { margin: 26px 0 10px; font-size: 18px; letter-spacing: -.015em; }
.docs-content section p { color: #554d48; line-height: 1.75; }
.docs-content section ul, .docs-content section ol { padding-left: 1.45rem; color: #554d48; }
.docs-content section li { margin: 8px 0; line-height: 1.65; }
.docs-content code { font-size: .92em; }
.docs-table-wrap { overflow-x: auto; }
.docs-table { width: 100%; border-collapse: collapse; color: #554d48; font-size: 14px; line-height: 1.5; }
.docs-table caption { padding: 0 0 12px; color: var(--muted); font-size: 13px; text-align: left; }
.docs-table th, .docs-table td { padding: 12px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.docs-table th { color: var(--brand-burgundy); background: var(--brand-soft); font-size: 12px; letter-spacing: .03em; }
.docs-table td:first-child { width: 35%; color: var(--ink); font-weight: 700; }
pre { overflow-x: auto; margin: 18px 0; padding: 19px 20px; border-radius: 11px; color: #fff9f4; background: var(--code); font: 13px/1.7 ui-monospace, SFMono-Regular, Menlo, monospace; }
.callout { margin-top: 22px; padding: 17px 18px; border-left: 4px solid var(--brand-orange); color: var(--brand-burgundy); background: var(--brand-soft); line-height: 1.6; }
.docs-next { margin-top: 60px; padding-top: 25px; display: flex; flex-direction: column; gap: 7px; border-top: 1px solid var(--line); }
.docs-next span { color: var(--muted); font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; text-transform: uppercase; }
.docs-next a { color: var(--brand-burgundy); font-size: 18px; font-weight: 750; text-decoration: none; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .product-frame { max-width: 620px; transform: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 220px; }
  .feature-grid article + article { border-top: 1px solid var(--line); border-left: 0; }
  .feature-grid h2 { margin-top: 34px; }
  .workflow { grid-template-columns: 1fr; gap: 45px; }
}

@media (max-width: 720px) {
  .site-header { width: min(100% - 32px, 1180px); min-height: 74px; }
  .site-brand .brand-mark { width: 32px; }
  .site-brand .brand-logotype { width: 120px; }
  .site-nav > a:not(.button) { display: none; }
  .hero, .feature-grid, .workflow, .site-footer { width: min(100% - 32px, 1180px); }
  .hero { padding: 55px 0 76px; gap: 52px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-summary { font-size: 17px; }
  .product-workspace { grid-template-columns: 1fr; }
  .feedback-preview { border-top: 1px solid var(--line); border-left: 0; }
  .preview-invitation { right: 11px; bottom: 11px; }
  .product-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .product-dialog-header { min-height: 48px; padding: 7px 8px; }
  .product-slide figcaption { display: none; }
  .product-slide img { max-height: calc(100vh - 76px); }
  .gallery-control { width: 36px; height: 36px; font-size: 25px; }
  .gallery-previous { left: 8px; }
  .gallery-next { right: 8px; }
  .workflow { margin-block: 90px; }
  .site-footer { min-height: 118px; padding: 28px 0; flex-wrap: wrap; }
  .site-footer .brand-lockup-horizontal { gap: 14px; }
  .site-footer .brand-lockup-horizontal .brand-lockup-logo { width: 130px; }
  .site-footer .brand-lockup-horizontal .brand-lockup-tagline { padding-bottom: 1px; font-size: 11px; }
  .footer-source { width: 100%; margin-left: 0; }

  .docs-page { display: block; }
  .docs-sidebar { display: none; }
  .docs-mobile-header { min-height: 66px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: #fbf8f4; }
  .docs-mobile-header a { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 750; text-decoration: none; }
  .docs-mobile-header img { width: 29px; }
  .docs-content { width: min(100% - 36px, 780px); padding: 56px 0 90px; }
  .docs-lede { margin-bottom: 44px; font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
