*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
  color: #000;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
}

code {
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.92em;
}

strong {
  font-weight: 600;
}

a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

a:hover,
a:focus-visible {
  text-decoration-thickness: 0.12em;
}

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 12vh, 5rem) 1.5rem clamp(3rem, 15vh, 6rem);
}

.logo {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 2.5rem;
}

h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-align: center;
}

h1.brand-title {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.1;
}

.slogan {
  margin: 0 auto 2rem;
  max-width: 36rem;
  text-align: center;
  font-size: clamp(0.8rem, 2vw, 0.95rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0 auto 2.5rem;
  max-width: 54rem;
  font-size: 1.46rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

.feature-sep {
  opacity: 0.75;
  user-select: none;
  font-weight: 400;
}

.links {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

.links li {
  margin: 0.5rem 0;
}

.links a {
  font-size: 0.98rem;
}

.site-nav {
  margin: 0 0 2rem;
  font-size: 0.9rem;
}

.site-nav a {
  margin-right: 1.25rem;
}

.site-nav a:last-child {
  margin-right: 0;
}

.page-sub h1 {
  text-align: left;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.25;
}

.page-sub .version {
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.page-sub h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.page-sub .prose p {
  margin: 0 0 1rem;
  text-align: left;
}

.page-sub .prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.page-sub .prose li {
  margin: 0.35rem 0;
}

.page-sub .full-doc {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #000;
}

.doc-section {
  margin-bottom: 2rem;
}

.doc-section:last-child {
  margin-bottom: 0;
}

.doc-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.125rem;
  font-weight: 500;
}

.doc-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list li {
  margin: 0.45rem 0;
  padding-left: 0;
}

.doc-list a {
  font-size: 0.98rem;
}

.source-pre {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid #000;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.source-note {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
}

/* Generated Markdown (marked) */
.page-doc {
  padding-top: clamp(1.5rem, 6vh, 2.5rem);
}

.md-content {
  max-width: 100%;
}

.md-content h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 500;
  line-height: 1.2;
  text-align: left;
}

.md-content h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.25;
}

.md-content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
  font-weight: 500;
}

.md-content h4 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1rem;
  font-weight: 500;
}

.md-content p {
  margin: 0 0 0.85rem;
}

.md-content ul,
.md-content ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.md-content li {
  margin: 0.3rem 0;
}

.md-content hr {
  margin: 1.75rem 0;
  border: none;
  border-top: 1px solid #000;
}

.md-content blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 1px solid #000;
}

.md-content pre {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border: 1px solid #000;
  overflow-x: auto;
  font-family: ui-monospace, "Cascadia Code", monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  white-space: pre;
}

.md-content code {
  font-size: 0.88em;
}

.md-content pre code {
  font-size: inherit;
}

.md-content table {
  width: 100%;
  margin: 1rem 0;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.md-content th,
.md-content td {
  border: 1px solid #000;
  padding: 0.4rem 0.55rem;
  text-align: left;
  vertical-align: top;
}

.md-content th {
  font-weight: 600;
}

.md-content img {
  max-width: 100%;
  height: auto;
}
