@font-face {
  font-family: Newsreader; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/newsreader-latin-standard-normal.woff2') format('woff2');
}
@font-face {
  font-family: Newsreader; font-style: italic; font-weight: 200 800; font-display: swap;
  src: url('/fonts/newsreader-latin-standard-italic.woff2') format('woff2');
}
@font-face {
  font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url('/fonts/manrope-latin-wght-normal.woff2') format('woff2');
}
:root {
  color-scheme: light;
  --paper: #f7f2e9; --surface: #fcf9f3; --ink: #302331; --text: #534854;
  --muted: #736474; --line: #ded3d8; --accent: #705078; --selected: #eee5ee;
  --code: #eee7e6; --rule: #ae91b0; --grain: .12;
  font-family: Manrope, system-ui, sans-serif; font-size: 16px;
  background: var(--paper); color: var(--ink); -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; min-width: 280px; line-height: 1.7; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: url('/art/towerz-paper-v1.webp') center / 800px auto; opacity: var(--grain);
}
a { color: inherit; text-underline-offset: .23em; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 2px; }
::selection { color: var(--ink); background: #dfd0e5; }
img { display: block; max-width: 100%; height: auto; }
svg { width: 17px; height: 17px; flex: 0 0 17px; }
.docs-skip {
  position: fixed; z-index: 20; top: 8px; left: 12px; padding: 9px 16px;
  background: var(--ink); color: var(--paper); transform: translateY(-200%);
}
.docs-skip:focus { transform: translateY(0); }
.docs-header {
  position: sticky; top: 0; z-index: 10; background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.docs-header__inner {
  max-width: 1320px; min-height: 88px; padding: 16px 40px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.docs-brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; flex-shrink: 0; }
.docs-brand img { width: 35px; height: 39px; object-fit: contain; }
.docs-brand span { font: 450 38px/1 Newsreader, Georgia, serif; letter-spacing: -.055em; padding-top: 4px; }
.docs-header__nav { display: flex; align-items: center; gap: 28px; font-size: 12px; font-weight: 650; }
.docs-header__nav a { text-decoration: none; }
.docs-open { display: inline-flex; gap: 18px; align-items: center; padding: 10px 15px; border: 1px solid var(--rule); }
.docs-open:hover { background: var(--selected); }
.docs-layout { display: grid; grid-template-columns: 228px minmax(0, 1fr); gap: 65px; max-width: 1240px; margin: 0 auto; padding: 54px 40px 60px; }
.docs-sidebar { min-width: 0; }
.docs-sidebar__inner { position: sticky; top: 124px; max-height: calc(100dvh - 148px); overflow-y: auto; padding-right: 16px; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.docs-label, .docs-eyebrow { font-size: 9px; font-weight: 650; letter-spacing: .13em; line-height: 1.6; text-transform: uppercase; color: var(--muted); margin: 0 0 15px; }
.docs-guides { display: flex; flex-direction: column; gap: 4px; }
.docs-guides a { display: block; padding: 9px 11px; border-left: 1px solid transparent; font-size: 12px; line-height: 1.5; text-decoration: none; color: var(--text); }
.docs-guides a:hover { color: var(--ink); background: var(--selected); }
.docs-guides a[aria-current] { border-left-color: var(--accent); color: var(--accent); background: var(--selected); font-weight: 700; }
.docs-toc { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 29px; }
.docs-toc nav { display: flex; flex-direction: column; gap: 10px; }
.docs-toc a { display: block; font-size: 11px; line-height: 1.65; text-decoration: none; color: var(--text); }
.docs-toc a:hover { color: var(--accent); text-decoration: underline; }
.docs-toc .docs-toc__nested { padding-left: 12px; color: var(--muted); }
.docs-sidebar__download { display: grid; grid-template-columns: 1fr 17px; gap: 4px 10px; margin-top: 30px; padding-top: 21px; border-top: 1px solid var(--line); text-decoration: none; font-size: 11px; font-weight: 700; }
.docs-sidebar__download span { grid-column: 1 / -1; font-size: 9px; font-weight: 400; color: var(--muted); }
.docs-main { min-width: 0; max-width: 800px; }
.docs-mobile-nav { display: none; }
.docs-hero { padding: 0 0 38px; }
.docs-eyebrow { margin-bottom: 25px; font-size: 9px; }
.docs-eyebrow span { padding: 0 11px; color: var(--rule); }
.docs-hero h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(38px, 4.8vw, 62px); font-weight: 450; letter-spacing: -.045em; line-height: 1.06; margin: 0; text-wrap: balance; }
.docs-hero__description { max-width: 630px; color: var(--text); font-size: 15px; line-height: 1.85; margin: 23px 0 0; }
.docs-hero__rule { display: flex; align-items: center; margin-top: 33px; }
.docs-hero__rule::before { content: ''; height: 1px; background: var(--rule); flex: 1; opacity: .75; }
.docs-hero__rule span { display: block; width: 5px; height: 5px; transform: rotate(45deg); background: var(--rule); }
.docs-artwork { margin: 0 0 34px; }
.docs-artwork__image { display: block; }
.docs-artwork img { display: block; width: 100%; height: auto; }
.docs-artwork figcaption { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0 19px; border-bottom: 1px solid var(--line); font-size: 10px; color: var(--muted); }
.docs-artwork figcaption span { display: grid; gap: 3px; }
.docs-artwork figcaption strong { font-size: 11px; color: var(--ink); font-weight: 650; }
.docs-artwork figcaption a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.docs-artwork figcaption a:hover { text-decoration: underline; }
.docs-prose { color: var(--text); font-size: 15px; line-height: 1.95; overflow-wrap: break-word; }
.docs-prose:focus { outline: none; }
.docs-prose > :first-child { margin-top: 0; }
.docs-prose p { margin: 0 0 20px; }
.docs-prose h2, .docs-prose h3, .docs-prose h4 { color: var(--ink); scroll-margin-top: 116px; }
.docs-prose h2 { font: 450 33px/1.2 Newsreader, Georgia, serif; letter-spacing: -.025em; margin: 49px 0 21px; padding-top: 29px; border-top: 1px solid var(--line); }
.docs-prose h3 { font: 500 25px/1.3 Newsreader, Georgia, serif; letter-spacing: -.018em; margin: 32px 0 15px; }
.docs-prose h4 { font-size: 14px; line-height: 1.5; margin: 27px 0 12px; }
.docs-prose strong { color: var(--ink); font-weight: 700; }
.docs-prose a { color: var(--accent); overflow-wrap: anywhere; }
.docs-prose ul, .docs-prose ol { padding-left: 25px; margin: 20px 0 25px; }
.docs-prose li { padding-left: 8px; margin: 0 0 16px; }
.docs-prose li::marker { color: var(--accent); font-weight: 650; }
.docs-prose li > p { margin: 0 0 9px; }
.docs-prose li > ul, .docs-prose li > ol { margin: 12px 0 0; }
.docs-prose li li { margin-bottom: 9px; }
.docs-prose ol > li { padding-left: 12px; }
.docs-prose hr { border: 0; border-top: 1px solid var(--line); margin: 38px 0; }
.docs-prose blockquote { border-left: 2px solid var(--accent); margin: 25px 0; padding: 17px 23px; background: var(--selected); }
.docs-prose blockquote p:last-child { margin-bottom: 0; }
.docs-prose code { font-family: ui-monospace, SFMono-Regular, Consolas, 'Liberation Mono', monospace; font-size: .88em; background: var(--code); border: 1px solid var(--line); border-radius: 3px; padding: 2px 5px; overflow-wrap: anywhere; color: var(--ink); }
.docs-prose pre { max-width: 100%; padding: 22px 24px; margin: 24px 0; border: 1px solid var(--line); background: var(--surface); overflow-x: auto; line-height: 1.8; tab-size: 2; scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.docs-prose pre code { display: block; width: max-content; min-width: 100%; border: 0; padding: 0; border-radius: 0; background: none; font-size: 12px; line-height: inherit; overflow-wrap: normal; }
.docs-prose figure { margin: 25px 0; }
.docs-prose figcaption { font-size: 11px; color: var(--muted); margin-top: 10px; }
.docs-prose figure img { margin-bottom: 0; }
.docs-prose img { border: 1px solid var(--line); margin: 25px 0; width: 100%; }
.docs-table { max-width: 100%; overflow-x: auto; margin: 25px 0; border: 1px solid var(--line); scrollbar-width: thin; scrollbar-color: var(--rule) transparent; }
.docs-table:focus-visible, .docs-prose pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.docs-prose table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.75; text-align: left; }
.docs-prose th { padding: 13px 16px; font-weight: 700; color: var(--ink); background: var(--selected); vertical-align: top; }
.docs-prose td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; min-width: 115px; }
.docs-prose td:first-child { min-width: 130px; }
.docs-prose th, .docs-prose td { overflow-wrap: normal; }
.docs-prose table code { white-space: nowrap; }
.docs-next { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--line); padding: 29px 0; margin-top: 53px; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.docs-next .docs-label { margin-bottom: 9px; }
.docs-next h2 { margin: 0; font: 450 25px/1.25 Newsreader, Georgia, serif; letter-spacing: -.02em; }
.docs-next__links { display: flex; flex-direction: column; gap: 11px; flex-shrink: 0; }
.docs-next__links a { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 11px; text-decoration: none; }
.docs-footer { max-width: 1240px; margin: 0 auto; padding: 34px 40px 41px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }
.docs-footer > div { display: flex; align-items: center; gap: 16px; }
.docs-footer__brand { font: 450 27px/1 Newsreader, Georgia, serif; letter-spacing: -.04em; text-decoration: none; }
.docs-footer span { color: var(--muted); font-size: 10px; }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 13px 24px; font-size: 10px; }
.docs-footer nav a { text-decoration: none; }
@media (min-width: 1500px) {
  .docs-layout { padding-top: 66px; }
}
@media (max-width: 1050px) {
  .docs-layout { gap: 36px; grid-template-columns: 190px minmax(0, 1fr); padding-inline: 28px; }
  .docs-header__inner, .docs-footer { padding-inline: 28px; }
  .docs-next { align-items: flex-start; flex-direction: column; gap: 22px; }
  .docs-next__links { flex-direction: row; gap: 30px; }
}
@media (max-width: 760px) {
  .docs-header__inner { min-height: 75px; padding: 13px 24px; }
  .docs-brand span { font-size: 33px; }
  .docs-brand img { width: 29px; height: 33px; }
  .docs-header__nav { gap: 18px; }
  .docs-layout { display: block; padding: 22px 24px 39px; }
  .docs-sidebar { display: none; }
  .docs-main { max-width: 100%; }
  .docs-mobile-nav { display: block; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
  .docs-mobile-nav summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; padding: 5px 0 16px; cursor: pointer; font-size: 11px; color: var(--text); }
  .docs-mobile-nav summary::-webkit-details-marker { display: none; }
  .docs-mobile-nav summary span { font-size: 18px; line-height: 1; color: var(--accent); }
  .docs-mobile-nav details[open] summary span { transform: rotate(45deg); }
  .docs-mobile-nav .docs-guides { padding-bottom: 17px; }
  .docs-mobile-nav .docs-toc { margin-top: 0; padding: 16px 0 22px; }
  .docs-mobile-nav .docs-toc nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
  .docs-hero { padding-bottom: 29px; }
  .docs-eyebrow { margin-bottom: 20px; }
  .docs-hero h1 { font-size: clamp(39px, 7vw, 54px); }
  .docs-hero__description { font-size: 14px; margin-top: 19px; }
  .docs-hero__rule { margin-top: 27px; }
  .docs-prose h2 { font-size: 30px; margin-top: 39px; }
  .docs-footer { margin: 0 24px; padding: 27px 0 34px; align-items: flex-start; flex-direction: column; gap: 22px; }
  .docs-footer nav { font-size: 11px; }
}
@media (max-width: 480px) {
  html { scroll-padding-top: 90px; }
  .docs-header__inner { min-height: 69px; padding: 11px 18px; gap: 14px; }
  .docs-brand { gap: 9px; }
  .docs-brand span { font-size: 32px; }
  .docs-brand img { width: 26px; height: 30px; }
  .docs-header__developers { display: none; }
  .docs-open { padding: 8px 10px; gap: 8px; font-size: 10px; }
  .docs-open svg { width: 13px; height: 13px; flex-basis: 13px; }
  .docs-layout { padding: 20px 20px 32px; }
  .docs-mobile-nav { margin-bottom: 30px; }
  .docs-mobile-nav .docs-toc nav { grid-template-columns: 1fr; }
  .docs-hero h1 { font-size: 39px; }
  .docs-hero__description { font-size: 13px; }
  .docs-artwork figcaption { align-items: flex-start; flex-direction: column; gap: 13px; }
  .docs-eyebrow { font-size: 8px; letter-spacing: .1em; }
  .docs-eyebrow span { padding: 0 7px; }
  .docs-prose { font-size: 14px; line-height: 1.9; }
  .docs-prose h2 { font-size: 29px; scroll-margin-top: 95px; }
  .docs-prose h3 { font-size: 24px; scroll-margin-top: 95px; }
  .docs-prose pre { padding: 17px 15px; }
  .docs-prose pre code { font-size: 11px; }
  .docs-prose ol, .docs-prose ul { padding-left: 19px; }
  .docs-prose ol > li, .docs-prose li { padding-left: 6px; }
  .docs-prose th, .docs-prose td { padding: 11px 12px; }
  .docs-next h2 { font-size: 25px; }
  .docs-next__links { flex-direction: column; gap: 13px; width: 100%; }
  .docs-footer { margin-inline: 20px; }
  .docs-footer > div { gap: 12px; }
  .docs-footer span { font-size: 9px; }
  .docs-footer nav { gap: 13px 19px; }
}
@media (prefers-color-scheme: dark) {
  :root { color-scheme: dark; --paper: #1d1822; --surface: #26202c; --ink: #f4eee7; --text: #c9c0ce; --muted: #aca0b5; --line: #44374b; --accent: #d0b5df; --selected: #302638; --code: #302738; --rule: #7d658b; --grain: .02; }
  ::selection { color: #fff8f2; background: #604b6c; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  :root { color-scheme: light; --paper: #fff; --surface: #fff; --ink: #211b24; --text: #211b24; --muted: #534854; --line: #c6bdc8; --accent: #49364f; --selected: #f4eff5; --code: #f4eff5; }
  body::before, .docs-header__nav, .docs-sidebar, .docs-mobile-nav, .docs-next, .docs-footer, .docs-skip { display: none; }
  .docs-header { position: static; }
  .docs-header__inner { min-height: auto; padding: 0 0 18px; }
  .docs-layout { display: block; max-width: none; padding: 28px 0 0; }
  .docs-main { max-width: none; }
  .docs-hero h1 { font-size: 38px; }
  .docs-prose { font-size: 11px; }
  .docs-prose h2 { break-after: avoid; font-size: 25px; }
  .docs-prose h3 { break-after: avoid; font-size: 20px; }
  .docs-prose pre, .docs-prose blockquote { break-inside: avoid; }
  .docs-prose pre code { white-space: pre-wrap; overflow-wrap: anywhere; width: auto; min-width: 0; }
  .docs-table { overflow: visible; }
  .docs-prose table { font-size: 9px; }
  .docs-prose td { min-width: 0; }
}
