@font-face {
  font-family: Cormorant;
  src: url("./fonts/cormorant-garamond-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("./fonts/inter-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
:root {
  --bg: #101b19;
  --surface: #192824;
  --text: #f2eee3;
  --muted: #aabbb0;
  --line: #33413a;
  --gold: #c6a369;
  --serif: Cormorant, Georgia, serif;
  --sans: Inter, system-ui, sans-serif;
  --gutter: clamp(24px, 5.15vw, 80px);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
  text-underline-offset: 4px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
summary {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
[hidden] {
  display: none !important;
}
a,
button {
  transition:
    color 0.18s,
    background 0.18s,
    border-color 0.18s;
}
a:hover {
  color: #e3c58e;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}
::selection {
  background: #5d6044;
  color: #fff;
}
.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  vertical-align: middle;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  padding: 12px 20px;
  background: var(--text);
  color: var(--bg);
  z-index: 30;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  height: 82px;
  margin: 0 38px;
  padding: 0 calc(var(--gutter) - 38px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 10;
}
.wordmark {
  font: 400 32px/0.9 var(--serif);
  letter-spacing: 5px;
  text-align: center;
  display: block;
}
.wordmark span {
  display: block;
  font: 500 10px/1 var(--sans);
  letter-spacing: 7px;
  color: var(--muted);
  margin: 7px 0 0 6px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 38px;
}
.site-header nav a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 15px;
}
.hero {
  position: relative;
  min-height: 424px;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  z-index: -1;
  mask-image: linear-gradient(to bottom, #000 88%, transparent);
}
.hero-copy {
  padding: 52px var(--gutter) 65px;
  max-width: 820px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
.hero h1 {
  font: 400 clamp(60px, 5.95vw, 88px)/0.99 var(--serif);
  letter-spacing: -1.6px;
}
.hero-copy > p {
  font-size: 20px;
  margin: 24px 0 29px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border: 1px solid var(--text);
  border-radius: 2px;
  background: var(--text);
  color: var(--bg);
  padding: 13px 26px;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
}
.button:hover {
  color: var(--bg);
  background: #dfd4b9;
  border-color: #dfd4b9;
}
.explore {
  margin: 0 38px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px calc(var(--gutter) - 38px) 32px;
  scroll-margin-top: 20px;
}
.explore h2 {
  font: 500 12px/1.6 var(--sans);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--muted);
  margin-bottom: 20px;
}
.categories {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  row-gap: 26px;
}
.categories > a {
  grid-column: span 2;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 0 20px 0 0;
  min-width: 0;
}
.categories > a + a {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.categories > a:nth-child(n + 4) {
  grid-column: span 3;
}
.categories > a:nth-child(4) {
  border-left: 0;
  padding-left: 0;
}
.categories > a > .icon {
  margin: 12px 0 0 auto;
}
.category-number {
  font: 400 22px/1.45 var(--serif);
  color: var(--gold);
  white-space: nowrap;
}
.categories h3 {
  font: 400 28px/1.25 var(--serif);
  white-space: nowrap;
}
.categories p {
  font-size: 13px;
  color: #bcc7c2;
  margin-top: 8px;
}
.library {
  padding: 29px var(--gutter) 60px;
  scroll-margin-top: 28px;
}
.library-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 18px;
}
.library h2 {
  font: 400 52px/1.12 var(--serif);
  letter-spacing: -0.7px;
}
.library-heading p {
  color: #c4cec9;
  font-size: 17px;
  margin-top: 3px;
}
.search-form {
  width: 340px;
  flex-shrink: 0;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #65766c;
  border-radius: 3px;
  padding: 11px 15px;
}
.search-field:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.search-field input {
  min-width: 0;
  width: 100%;
  outline: none;
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  height: 25px;
}
.search-field input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.filters {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 33px;
  margin-bottom: 26px;
  overflow-x: auto;
}
.filters button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #c3cec8;
  font-size: 14px;
  padding: 12px 15px;
  white-space: nowrap;
}
.filters button:first-child {
  padding-left: 5px;
}
.filters button[aria-pressed="true"] {
  border-bottom-color: var(--gold);
  color: var(--text);
  font-weight: 600;
}
.filters button:hover {
  color: var(--gold);
}
.guide-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 96px;
}
.guide-row {
  display: block;
  padding: 0 0 20px;
  margin: 0 0 22px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.guide-group {
  font-size: 10px;
  letter-spacing: 1.4px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}
.guide-row h3 {
  font: 400 27px/1.2 var(--serif);
  margin: 3px 0 7px;
  display: flex;
  align-items: center;
  gap: 13px;
}
.guide-row .icon {
  width: 20px;
  transition: transform 0.18s;
}
.guide-row:hover .icon {
  transform: translateX(4px);
}
.guide-row p {
  font-size: 13px;
  line-height: 1.6;
  color: #c1ccc6;
}
.empty-state {
  text-align: center;
  padding: 55px 0;
}
.empty-state h3 {
  font: 400 38px/1.2 var(--serif);
}
.empty-state p {
  color: var(--muted);
  margin: 10px 0 24px;
}
.complete-index {
  display: inline-flex;
  gap: 15px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.site-footer {
  margin: 0 38px;
  border-top: 1px solid var(--line);
  padding: 19px calc(var(--gutter) - 38px) 25px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  color: var(--muted);
}
.site-footer .icon {
  width: 15px;
  height: 15px;
  margin-left: 5px;
}
.reader .site-header {
  background: var(--bg);
  position: sticky;
  top: 0;
}
.docs-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr) 195px;
  gap: 45px;
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 48px;
}
.docs-sidebar {
  border-right: 1px solid var(--line);
  min-width: 0;
}
.docs-menu {
  position: sticky;
  top: 88px;
  height: calc(100vh - 88px);
  overflow: auto;
  padding: 43px 25px 40px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.docs-menu summary {
  display: none;
}
.docs-menu:not([open]) > .docs-menu-content {
  display: block;
}
.sidebar-title {
  font: 400 29px/1.2 var(--serif);
}
.sidebar-search {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 13px;
  color: var(--muted);
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.sidebar-group {
  margin-bottom: 30px;
}
.sidebar-group p {
  font-size: 10px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 9px;
}
.sidebar-group a {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  padding: 7px 10px;
  border-left: 2px solid transparent;
  margin-left: 0;
}
.sidebar-group a[aria-current="page"] {
  border-color: var(--gold);
  background: var(--surface);
  color: var(--text);
}
.doc-main {
  min-width: 0;
  padding: 44px 0 25px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}
.doc-heading {
  padding-bottom: 27px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.doc-heading h1 {
  font: 400 clamp(44px, 4.8vw, 66px)/1.08 var(--serif);
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}
.doc-heading > p {
  font-size: 17px;
  color: #d4dbd5;
  margin-top: 12px;
}
.source-links {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 26px;
  font-size: 13px;
}
.source-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.source-links .icon {
  width: 18px;
  height: 18px;
}
.toc {
  padding-top: 44px;
  min-width: 0;
}
.toc nav {
  position: sticky;
  top: 128px;
  max-height: calc(100vh - 160px);
  overflow: auto;
  scrollbar-width: thin;
  border-left: 1px solid var(--line);
  padding-left: 21px;
}
.toc p {
  font-size: 14px;
  margin-bottom: 15px;
}
.toc a {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 13px;
  padding-left: 10px;
  border-left: 2px solid transparent;
}
.toc a[aria-current="true"] {
  color: #e3c58e;
  border-left-color: var(--gold);
}
.prose {
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  color: #d8ded9;
}
.prose > :first-child {
  margin-top: 0;
}
.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose .table-scroll,
.prose .code-block,
.prose .diagram {
  margin: 20px 0;
}
.prose h2 {
  font: 400 39px/1.15 var(--serif);
  color: var(--text);
  margin: 42px 0 18px;
  letter-spacing: -0.3px;
}
.prose h3 {
  font: 400 28px/1.3 var(--serif);
  color: var(--text);
  margin: 28px 0 12px;
}
.prose h4 {
  font-size: 17px;
  margin-top: 25px;
}
.prose a {
  color: #dbc08e;
  text-decoration: underline;
}
.prose a:hover {
  text-decoration-thickness: 2px;
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 3px;
}
.prose ul,
.prose ol {
  padding-left: 24px;
}
.prose li + li {
  margin-top: 7px;
}
.prose li > p {
  margin: 10px 0;
}
.prose code {
  font:
    12px/1.7 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #1c2b26;
  color: #e5d7b9;
  padding: 2px 5px;
  border-radius: 3px;
}
.code-block {
  border: 1px solid #43564b;
  border-radius: 3px;
  overflow: hidden;
}
.code-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 7px 17px;
  border-bottom: 1px solid var(--line);
  background: #192622;
  font-size: 11px;
  color: var(--muted);
}
.copy-code {
  padding: 2px 8px;
  color: var(--text);
  border: 1px solid #516055;
  background: transparent;
  border-radius: 3px;
  font-size: 11px;
  line-height: 1.8;
}
.copy-code:hover {
  background: #2c3d32;
}
.prose pre {
  overflow: auto;
  padding: 18px;
  margin: 0;
  line-height: 1.7;
  white-space: pre;
  tab-size: 4;
}
.prose pre code {
  padding: 0;
  background: transparent;
  color: #dce3d9;
  border-radius: 0;
}
.prose blockquote {
  padding: 5px 20px;
  border-left: 2px solid var(--gold);
  background: #182621;
  color: #ccd6ce;
}
.prose blockquote p {
  margin: 10px 0;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.prose table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  line-height: 1.7;
}
.prose th {
  text-align: left;
  background: var(--surface);
  color: var(--text);
  font-weight: 500;
}
.prose td,
.prose th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  min-width: 95px;
}
.prose tr:last-child td {
  border-bottom: 0;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 30px 0;
}
.diagram {
  padding: 18px;
  background: #14231d;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: auto;
}
.diagram .mermaid {
  padding: 0;
  text-align: center;
  min-width: 420px;
}
.diagram svg {
  height: auto;
  max-width: 100%;
}
.diagram figcaption {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}
.doc-end {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  margin-top: 52px;
  padding-top: 25px;
  font-size: 13px;
  color: var(--muted);
}
.doc-end .icon {
  transform: rotate(180deg);
  width: 18px;
  margin-right: 6px;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #a8c7e3;
}
.hljs-string,
.hljs-attr {
  color: #bed19e;
}
.hljs-number,
.hljs-symbol {
  color: #dfbb8a;
}
.hljs-comment {
  color: #8fa99c;
}
.hljs-title,
.hljs-built_in {
  color: #e2c68b;
}
.not-found {
  padding: 110px var(--gutter);
  min-height: 70vh;
}
.not-found h1 {
  font: 400 clamp(44px, 5vw, 72px)/1.1 var(--serif);
}
.not-found p {
  margin: 22px 0 30px;
  color: var(--muted);
}
.diagram-gallery {
  padding: 44px var(--gutter) 60px;
}
.diagram-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-bottom: 12px;
  color: var(--muted);
}
.diagram-jump a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.diagram-entry {
  margin: 32px 0 56px;
}
.diagram-entry h2 {
  font: 400 40px/1.15 var(--serif);
  scroll-margin-top: 24px;
}
.diagram-entry > p {
  max-width: 920px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}
.diagram-entry .source-links {
  margin: 20px 0 24px;
}
.diagram-frame {
  display: block;
  width: 100%;
  height: clamp(860px, 64vw, 960px);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #f4ecd9;
}
.diagram-entry .diagram-hint {
  font-size: 12px;
}
@media (min-width: 1700px) {
  body {
    max-width: 1700px;
    margin: auto;
  }
  .hero {
    min-height: 500px;
  }
}
@media (max-width: 1150px) {
  .categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 24px;
  }
  .categories > a {
    gap: 12px;
    padding-right: 18px;
  }
  .categories > a + a {
    padding-left: 18px;
  }
  .categories > a:nth-child(n) {
    grid-column: auto;
  }
  .categories > a:nth-child(4) {
    border-left: 1px solid var(--line);
  }
  .categories > a:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .categories h3 {
    font-size: 27px;
  }
  .category-number {
    font-size: 22px;
  }
  .categories p {
    font-size: 12px;
  }
  .library h2 {
    font-size: 43px;
  }
  .search-form {
    width: 290px;
  }
  .docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 34px;
    padding: 0 30px;
  }
  .toc {
    display: none;
  }
  .guide-list {
    column-gap: 55px;
  }
  .filters {
    gap: 12px;
  }
}
@media (max-width: 800px) {
  .site-header {
    margin: 0 24px;
    padding: 0;
    height: 78px;
  }
  .site-header nav {
    gap: 23px;
  }
  .site-header nav a {
    font-size: 13px;
  }
  .wordmark {
    font-size: 29px;
  }
  .hero {
    min-height: 510px;
    align-items: flex-end;
  }
  .hero-art {
    object-position: 65% center;
    opacity: 0.8;
    mask-image: linear-gradient(to bottom, #000 0%, #000 35%, transparent 90%);
  }
  .hero-copy {
    padding: 200px var(--gutter) 40px;
    width: 100%;
  }
  .hero h1 {
    font-size: 65px;
  }
  .hero-copy > p {
    font-size: 16px;
    max-width: 400px;
    margin: 20px 0 23px;
  }
  .explore {
    margin: 0 24px;
    padding: 24px 0;
  }
  .categories {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .categories > a {
    padding: 15px 0;
    gap: 18px;
  }
  .categories > a + a {
    padding: 18px 0 0;
    margin-top: 8px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .categories h3 {
    font-size: 29px;
  }
  .categories p {
    font-size: 13px;
    margin-top: 3px;
  }
  .categories > a > .icon {
    margin-left: auto;
  }
  .library {
    padding: 30px var(--gutter) 40px;
  }
  .library-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 23px;
  }
  .library h2 {
    font-size: 43px;
  }
  .library-heading p {
    font-size: 15px;
    margin-top: 5px;
  }
  .search-form {
    width: 100%;
  }
  .filters {
    gap: 10px;
    margin-bottom: 18px;
  }
  .filters button {
    font-size: 13px;
    padding: 11px 13px;
  }
  .guide-list {
    column-gap: 34px;
  }
  .site-footer {
    margin: 0 24px;
    padding: 18px 0 25px;
  }
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 0 24px;
  }
  .reader .site-header {
    position: relative;
  }
  .docs-sidebar {
    border: 0;
  }
  .docs-menu {
    position: static;
    height: auto;
    padding: 0;
    border-bottom: 1px solid var(--line);
  }
  .docs-menu summary {
    display: list-item;
    padding: 17px 0;
    color: var(--muted);
    font-size: 14px;
    cursor: pointer;
  }
  .docs-menu:not([open]) > .docs-menu-content {
    display: none;
  }
  .docs-menu-content {
    padding: 15px 12px;
  }
  .sidebar-title {
    display: none;
  }
  .sidebar-search {
    padding-top: 0;
  }
  .sidebar-group {
    margin-bottom: 20px;
  }
  .sidebar-group a {
    font-size: 14px;
  }
  .doc-main {
    padding-top: 25px;
  }
  .breadcrumb {
    font-size: 12px;
    gap: 10px;
    margin-bottom: 22px;
  }
  .doc-heading h1 {
    font-size: 49px;
  }
  .doc-heading > p {
    font-size: 16px;
  }
  .prose {
    font-size: 15px;
  }
  .prose h2 {
    font-size: 35px;
  }
  .prose pre code {
    font-size: 12px;
  }
  .source-links {
    gap: 22px;
  }
  .doc-end {
    font-size: 12px;
  }
}
@media (max-width: 520px) {
  .site-header nav {
    gap: 18px;
  }
  .site-header nav > a:first-child {
    display: none;
  }
  .site-header nav .icon {
    width: 16px;
  }
  .site-header nav a {
    font-size: 12px;
  }
  .wordmark {
    font-size: 27px;
    letter-spacing: 4px;
  }
  .wordmark span {
    font-size: 8px;
    letter-spacing: 6px;
  }
  .hero h1 {
    font-size: 57px;
    letter-spacing: -1.2px;
  }
  .hero-copy {
    padding-top: 190px;
  }
  .hero-art {
    object-position: 70% top;
    height: 350px;
    mask-image: linear-gradient(to bottom, #000 5%, #000 40%, transparent 100%);
  }
  .hero-copy > p {
    max-width: 310px;
  }
  .button {
    font-size: 14px;
    padding: 12px 20px;
    gap: 18px;
  }
  .library h2 {
    font-size: 40px;
    max-width: 300px;
  }
  .guide-list {
    grid-template-columns: 1fr;
  }
  .guide-row {
    padding-bottom: 18px;
    margin-bottom: 20px;
  }
  .guide-row h3 {
    font-size: 29px;
  }
  .guide-row p {
    font-size: 13px;
  }
  .site-footer {
    font-size: 10px;
    gap: 10px;
  }
  .site-footer .icon {
    display: none;
  }
  .doc-heading h1 {
    font-size: 46px;
  }
  .prose h2 {
    font-size: 32px;
  }
  .prose ul,
  .prose ol {
    padding-left: 20px;
  }
  .prose pre {
    padding: 14px;
  }
  .diagram {
    padding: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
