/* ==========================================================================
   Velvet Website — Clean, Modern, Academic & Systems Stylesheet
   Designed for Verse Lab, mirroring Veil's layout and refined UX.
   ========================================================================== */

:root {
  --color-primary: #581c87;
  --color-primary-dark: #3b0764;
  --color-primary-light: #7e22ce;
  --color-primary-subtle: #faf5ff;
  --color-accent: #6d28d9;

  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-card: #ffffff;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;

  --color-text: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;

  --color-code-bg: #0d1117;
  --color-code-text: #e6edf3;
  --color-code-border: #30363d;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Fira Code", "Fira Mono", "Roboto Mono", Menlo, Consolas, monospace;

  --max-width: 1180px;
  --header-height: 64px;
  --radius: 8px;
  --radius-lg: 12px;
}

:root[data-theme="dark"] {
  --color-primary: #c084fc;
  --color-primary-dark: #a855f7;
  --color-primary-light: #d8b4fe;
  --color-primary-subtle: #1a102a;
  --color-accent: #a855f7;

  --color-bg: #090611;
  --color-bg-alt: #100b20;
  --color-bg-card: #150f29;
  --color-border: #281e3d;
  --color-border-subtle: #1d162e;

  --color-text: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;

  --color-code-bg: #090611;
  --color-code-text: #f8fafc;
  --color-code-border: #281e3d;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #c084fc;
    --color-primary-dark: #a855f7;
    --color-primary-light: #d8b4fe;
    --color-primary-subtle: #1a102a;
    --color-accent: #a855f7;

    --color-bg: #090611;
    --color-bg-alt: #100b20;
    --color-bg-card: #150f29;
    --color-border: #281e3d;
    --color-border-subtle: #1d162e;

    --color-text: #f8fafc;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;

    --color-code-bg: #090611;
    --color-code-text: #f8fafc;
    --color-code-border: #281e3d;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
}

/* --- Layout Containers --- */
.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

main {
  min-height: calc(100vh - var(--header-height) - 180px);
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
  transition: background 0.2s, border-color 0.2s;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-dark {
  display: none;
}

:root[data-theme="dark"] .logo-light {
  display: none;
}

:root[data-theme="dark"] .logo-dark {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light {
    display: none;
  }

  :root:not([data-theme="light"]) .logo-dark {
    display: block;
  }
}

nav.top ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

nav.top ol li a {
  color: var(--color-text);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

nav.top ol li a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  text-decoration: none;
}

/* --- Hero Section --- */
.hero {
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(126, 34, 206, 0.12), transparent);
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--color-text);
  margin: 0 0 1rem;
}

.hero-description {
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin: 0 auto 2.25rem;
  max-width: 680px;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid transparent;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-bg);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-primary-light);
  color: var(--color-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-icon,
.btn span[class*="-icon"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
}

.github-icon {
  background-image: url("/static/github.svg");
}

/* --- Theme toggle --- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.theme-toggle:hover {
  color: var(--color-primary);
  border-color: var(--color-border);
  background: var(--color-bg-alt);
}

/* The icons are masks rather than images so they inherit the button's colour
   and need no light/dark variants of their own. */
.theme-icon {
  width: 17px;
  height: 17px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.theme-icon-sun {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2.2v2.4M12 19.4v2.4M4.1 4.1l1.7 1.7M18.2 18.2l1.7 1.7M2.2 12h2.4M19.4 12h2.4M4.1 19.9l1.7-1.7M18.2 5.8l1.7-1.7'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Cpath d='M12 2.2v2.4M12 19.4v2.4M4.1 4.1l1.7 1.7M18.2 18.2l1.7 1.7M2.2 12h2.4M19.4 12h2.4M4.1 19.9l1.7-1.7M18.2 5.8l1.7-1.7'/%3E%3C/svg%3E");
}

.theme-icon-moon {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12.8A9 9 0 1 1 11.2 3a7 7 0 0 0 9.8 9.8z'/%3E%3C/svg%3E");
}

/* Show the theme you would switch *to*. */
.theme-icon-sun { display: none; }
.theme-icon-moon { display: block; }

:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }


.hero-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-bg-card);
  color: var(--color-text-muted);
  font-size: 0.88rem;
  opacity: 0;
  transition: opacity 0.3s, border-color 0.2s, color 0.2s;
}

.hero-stars.loaded {
  opacity: 1;
}

.hero-stars:hover {
  border-color: var(--color-accent);
  color: var(--color-primary);
  text-decoration: none;
}

.star-icon {
  color: #eab308;
}

.section-title {
  font-size: 1.85rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin: 0 0 0.6rem;
}

.section-description {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 650px;
  margin: 0 auto 3rem;
}


/* --- Code Preview Section (Interactive Walkthrough) --- */
.code-preview {
  padding: 4.5rem 1.5rem 5rem;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.code-preview-container {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  transition: gap 0.4s ease;
  min-width: 0;
}

.code-preview-container.has-panel {
  gap: 2rem;
}

.code-preview-left {
  flex: 1;
  width: 100%;
  min-width: 0;
  max-width: 740px;
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.preview-window-bar {
  background: #161b22;
  border-bottom: 1px solid var(--color-code-border);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  position: relative;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.ctrl-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

.dot-close { background: #ff5f56; }
.dot-min { background: #ffbd2e; }
.dot-expand { background: #27c93f; }

.window-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #8b949e;
}

.code-preview-block {
  margin: 0;
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--color-code-text);
  background: var(--color-code-bg);
}

.code-preview-block code {
  font-family: inherit;
  font-size: inherit;
  white-space: pre;
}

/* Walkthrough Step Highlights */
.code-hl {
  display: inline-block;
  width: 100%;
  padding: 2px 6px;
  margin: 0 -6px;
  border-radius: 4px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.code-hl:hover {
  background: rgba(192, 132, 252, 0.12);
}

.code-hl.active {
  background: rgba(192, 132, 252, 0.22);
  box-shadow: inset 3px 0 0 var(--color-primary-light);
}

/* Inline code inside a walkthrough panel. */
.wt-code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  padding: 0.1em 0.34em;
  border-radius: 4px;
  background: var(--color-primary-subtle, rgba(192, 132, 252, 0.14));
  color: var(--color-primary-dark);
  white-space: nowrap;
}

/* Side Panel (Desktop >= 1024px) */
.code-side-panel {
  display: none;
  width: 0;
  flex-shrink: 0;
  overflow: hidden;
  position: sticky;
  top: calc(50vh - 120px);
  transition: width 0.35s ease;
}

.code-side-panel.active {
  display: block;
  width: 320px;
}

.side-panel-inner {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.side-panel-inner.visible {
  opacity: 1;
  transform: translateX(0);
}

.side-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.85rem;
}

.side-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.side-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.side-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
  transition: opacity 0.15s ease;
}

.side-text {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary);
  transition: opacity 0.15s ease;
}

.side-title.fading,
.side-text.fading {
  opacity: 0;
}

/* Floating Card (Mobile < 1024px) */
.walkthrough-card {
  display: none;
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.walkthrough-card.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.wt-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 0.65rem;
}

.wt-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.wt-dot.active {
  background: var(--color-primary);
  transform: scale(1.3);
}

.wt-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.wt-text {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* --- Workflow / Quickstart Section --- */
.workflow-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 5rem;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 860px) {
  .workflow-grid {
    grid-template-columns: 1fr;
  }
}

.step-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.step-header {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.step-badge {
  background: var(--color-primary);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: 0 0 1rem;
}

.code-block {
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-code-text);
  margin: 0;
}

.cta-banner {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.cta-text h3 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
}

.cta-text p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.cta-text p {
  max-width: 62ch;
}

/* --- Syntax Highlighting Tokens (GitHub Dark / Catppuccin Hybrid) --- */
.token.keyword, article pre .token.keyword, pre code .token.keyword { color: #ff7b72 !important; font-weight: 600; }
.token.const, article pre .token.const, pre code .token.const { color: #79c0ff !important; }
.token.var, article pre .token.var, pre code .token.var { color: #d2a8ff !important; }
.token.tactic, article pre .token.tactic, pre code .token.tactic { color: #ffa657 !important; font-weight: 600; }
.token.literal, article pre .token.literal, pre code .token.literal { color: #a5d6ff !important; }
.token.number, article pre .token.number, pre code .token.number { color: #fab387 !important; }
.token.operator, article pre .token.operator, pre code .token.operator { color: #7ee787 !important; }
.token.comment, article pre .token.comment, pre code .token.comment { color: #8b949e !important; font-style: italic; }

/* --- Documentation & Subpage Article Typography --- */
.page-article {
  padding: 1rem 0 4rem;
  line-height: 1.75;
}

.page-article > section > h2:first-child,
.page-article > h1:first-child {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-top: 0;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.page-article section > h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-top: 2.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.page-article section > section > h4,
.page-article section > h4 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-text);
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.page-article p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.page-article ul,
.page-article ol {
  color: var(--color-text-secondary);
  padding-left: 1.6rem;
  margin-top: 0;
  margin-bottom: 1.25rem;
}

.page-article li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.page-article code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  padding: 0.15em 0.35em;
  border-radius: 4px;
  color: var(--color-text);
}

/* Documentation Pre Code Blocks */
.page-article pre {
  background: var(--color-code-bg);
  color: var(--color-code-text);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.35rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.65;
  margin: 1.35rem 0 1.75rem;
}

.page-article pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: inherit;
  color: inherit;
}

/* PDF link badges */
.page-article a[href$=".pdf"] {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  border: 1px solid rgba(88, 28, 135, 0.15);
  font-size: 0.88rem;
}

.page-article a[href$=".pdf"]:hover {
  background: var(--color-primary);
  color: #ffffff;
  text-decoration: none;
}

.page-article blockquote {
  border-left: 3px solid var(--color-primary);
  margin: 1.5rem 0;
  padding: 0.5rem 0 0.5rem 1.25rem;
  color: var(--color-text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5rem 0;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 3rem 0;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  margin: 0;
}

/* ==========================================================================
   Velvet — 2026 refresh
   New design tokens and components layered on the base sheet above.
   Everything below keeps the royal-velvet purple identity.
   ========================================================================== */

:root {
  --max-width-wide: 1180px;
  --surface-raised: #ffffff;
  --surface-sunken: #f7f5fb;
  --tint-primary: rgba(126, 34, 206, 0.07);
  --tint-primary-strong: rgba(126, 34, 206, 0.14);
  --hairline: rgba(88, 28, 135, 0.14);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(88, 28, 135, 0.08);
  --shadow-lg: 0 20px 48px rgba(88, 28, 135, 0.12);
  --color-good: #15803d;
  --color-warn: #b45309;
  --color-bad: #b91c1c;
}

:root[data-theme="dark"] {
  --surface-raised: #150f29;
  --surface-sunken: #0d0819;
  --tint-primary: rgba(192, 132, 252, 0.08);
  --tint-primary-strong: rgba(192, 132, 252, 0.16);
  --hairline: rgba(192, 132, 252, 0.18);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
  --color-good: #4ade80;
  --color-warn: #fbbf24;
  --color-bad: #f87171;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface-raised: #150f29;
    --surface-sunken: #0d0819;
    --tint-primary: rgba(192, 132, 252, 0.08);
    --tint-primary-strong: rgba(192, 132, 252, 0.16);
    --hairline: rgba(192, 132, 252, 0.18);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.55);
    --color-good: #4ade80;
    --color-warn: #fbbf24;
    --color-bad: #f87171;
  }
}

/* --- Accessibility --- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--color-primary);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}

.skip-link:focus {
  left: 0;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
  border-radius: 3px;
}

/* --- Header refinements --- */
.site-header {
  backdrop-filter: saturate(180%) blur(12px);
  background: color-mix(in srgb, var(--color-bg) 85%, transparent);
  border-bottom-color: var(--hairline);
}

.header-inner {
  max-width: var(--max-width-wide);
}

nav.top ol {
  gap: 1.6rem;
  align-items: center;
}

nav.top ol li a {
  font-size: 0.9rem;
  letter-spacing: -0.005em;
  color: var(--color-text-secondary);
}

nav.top ol li a.nav-current {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.nav-github a {
  display: flex;
  align-items: center;
  border-bottom: none !important;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.nav-github a:hover { opacity: 1; }

.nav-github .github-icon {
  display: block;
  width: 19px;
  height: 19px;
  background-size: contain;
  background-repeat: no-repeat;
}

:root[data-theme="dark"] .github-icon,

:root[data-theme="dark"] .zulip-icon { filter: invert(1) brightness(1.6); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .github-icon,

  :root:not([data-theme="light"]) .zulip-icon { filter: invert(1) brightness(1.6); }
}

@media (max-width: 900px) {
  .site-header { height: auto; position: static; }

  .header-inner { flex-direction: column; gap: 0.75rem; padding: 0.9rem 1.25rem; }

  nav.top ol { gap: 1.1rem; justify-content: center; }
}

/* --- Hero --- */
.hero {
  padding: 5.5rem 1.5rem 3.5rem;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, var(--tint-primary-strong), transparent 70%),
    radial-gradient(ellipse 40% 40% at 85% 10%, var(--tint-primary), transparent 70%);
}

.hero-content { max-width: 820px; }

.hero-title {
  font-size: clamp(3rem, 9vw, 4.25rem);
  letter-spacing: -0.045em;
  background: linear-gradient(170deg, var(--color-text) 40%, var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-description { font-size: 1.1rem; max-width: 640px; }

/* --- Pillars --- */
.pillars-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4.5rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (max-width: 820px) { .pillar-grid { grid-template-columns: 1fr; }
}

.pillar-card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.9rem;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.pillar-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity 0.2s;
}

.pillar-card:hover {
  border-color: var(--color-primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pillar-card:hover::before { opacity: 1; }

.pillar-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  opacity: 0.6;
  margin-bottom: 0.7rem;
}

.pillar-card h3 {
  margin: 0 0 0.7rem;
  font-size: 1.28rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.pillar-card p {
  margin: 0;
  font-size: 0.97rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
}

/* --- Failure-mode comparison --- */
.failure-section {
  background: var(--surface-sunken);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4.5rem 1.5rem 5rem;
}


.failure-card {
  background: var(--surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.failure-after { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); }

.failure-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.failure-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.tag-good { color: #fff; background: var(--color-primary); }

.failure-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.015em;
}

.failure-block {
  font-size: 0.74rem;
  margin: 0 0 1rem;
  background: var(--color-code-bg);
  border: 1px solid var(--color-code-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--color-code-text);
  white-space: pre;
  flex: 1;
}

.failure-note {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-muted);
}

.failure-note code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  background: var(--tint-primary);
  padding: 0.08em 0.32em;
  border-radius: 4px;
  color: var(--color-primary);
}

/* --- Home section widths --- */
.features-section, .workflow-section, .code-preview-container { max-width: var(--max-width-wide); }

.workflow-note {
  text-align: center;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  margin: -1.5rem 0 3rem;
}

.workflow-note code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--tint-primary);
  padding: 0.08em 0.32em;
  border-radius: 4px;
}


/* --- Sub-page hero (Why, Publications) --- */
.page-hero {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 4rem 1.5rem 2.5rem;
}

.page-hero-title {
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: var(--color-text);
  margin: 0 0 1.25rem;
  max-width: 18ch;
}

.page-hero-lede {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 68ch;
  margin: 0;
}


/* Left-aligned section headers (Why Velvet). The heading block is a real
   wrapper: an earlier version reined the lede in with a percentage padding,
   but percentage padding resolves against the *containing block* — the
   full-bleed section — so on a wide monitor the text column collapsed to
   nothing. Constrain the measure on the element itself instead. */
.section-head {
  max-width: var(--max-width-wide);
  margin: 0 auto 2.75rem;
}

.section-head .section-title {
  text-align: left;
  margin: 0 0 0.8rem;
}

.section-head .section-description {
  text-align: left;
  max-width: 76ch;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.7;
}


/* Jump targets sit under the sticky header, so pull them clear of it. */
.page-article :is(h2, h3, h4, h5, h6)[id] {
  scroll-margin-top: calc(var(--header-height) + 1.25rem);
}

/* --- Publications --- */
.pub-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 1rem 1.5rem 4rem;
}

.pub-heading {
  margin: 1.5rem 0 2.75rem;
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.pub-list {
  margin: 0;
  padding-left: 2.4rem;
  list-style: decimal;
}

.pub-list > li {
  margin-bottom: 2.1rem;
  padding-bottom: 2.1rem;
  border-bottom: 1px solid var(--color-border);
}

.pub-list > li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.pub-list > li::marker {
  color: var(--color-text-muted);
  font-weight: 700;
}

.pub-title {
  margin: 0 0 0.55rem;
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
}

.pub-authors {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.pub-where {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  color: var(--color-text-secondary);
}

.pub-links {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

/* The BibTeX disclosure sits in the same row as the links, so its summary wears
   the same pill as an <a>. The open panel has to escape that row, hence the
   full-width basis. */
.pub-link,
.pub-bibtex > summary {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 0.35rem 0.95rem;
  transition: color 0.15s, border-color 0.15s, background-color 0.15s;
}

.pub-link:hover,
.pub-bibtex > summary:hover {
  text-decoration: none;
  color: var(--color-primary);
  border-color: var(--color-primary-light);
  background: var(--tint-primary);
}

.pub-bibtex > summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.pub-bibtex > summary::-webkit-details-marker { display: none; }

.pub-bibtex[open] {
  flex-basis: 100%;
}

.pub-bibtex .code-block {
  margin-top: 0.85rem;
  white-space: pre;
  font-size: 0.78rem;
}

/* --- Footer --- */
.footer-inner { max-width: var(--max-width-wide); }

.footer-cols {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

@media (max-width: 760px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 2rem; }

  .footer-brand { grid-column: 1 / -1; }
}

.footer-col { display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }

.footer-col h4 {
  margin: 0 0 0.25rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.footer-col a { font-size: 0.9rem; color: var(--color-text-secondary); }
.footer-col a:hover { color: var(--color-primary); }

.footer-brand .logo-img { height: 24px; margin-bottom: 0.3rem; }

.footer-tagline {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 34ch;
}

/* --- Article typography: links inside prose --- */
.page-article a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.page-article a:hover { text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Keep prose to a comfortable measure on documentation pages, while leaving
   code blocks free to use the full column. */
.page-article p,
.page-article li { max-width: 78ch; }

/* --- Icons ---------------------------------------------------------------
   github.svg and zulip.svg are authored with fill="white", which makes them
   invisible on a light background and (after inverting) on a dark one. Draw
   them as masks instead so they simply take the surrounding text colour. */
.footer-icon,
.github-icon,
.zulip-icon,
.btn span[class*="-icon"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  vertical-align: middle;
}

.github-icon {
  -webkit-mask-image: url("/static/github.svg");
  mask-image: url("/static/github.svg");
}

:root[data-theme="dark"] .github-icon,

:root[data-theme="dark"] .zulip-icon,

:root[data-theme="dark"] .footer-icon { filter: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .github-icon,

  :root:not([data-theme="light"]) .zulip-icon,

  :root:not([data-theme="light"]) .footer-icon { filter: none; }
}

.nav-github .github-icon { width: 19px; height: 19px; display: block; }
.nav-github a { opacity: 0.6; }
.nav-github a:hover { opacity: 1; color: var(--color-primary); }

/* --- Overflow containment ------------------------------------------------
   Grid and flex items default to min-width:auto, so a `white-space: pre`
   code block inside a card widens its whole track and pushes the page past
   the viewport on narrow screens. Let the cards shrink and the code scroll. */
.evidence-item,
.pillar-card,
.failure-card,
.feature-card,
.step-card,
.case-item,
.code-preview-left { min-width: 0; }

.failure-block,
.code-block,
.code-preview-block,
.page-article pre,
.pub-bibtex .code-block { max-width: 100%; }

/* --- Narrow screens --- */
@media (max-width: 620px) {
  nav.top ol { gap: 0.55rem 0.9rem; font-size: 0.85rem; }

  nav.top ol li a { font-size: 0.85rem; }

  .header-inner { padding: 0.8rem 1rem; }


  .hero { padding: 3rem 1.25rem 2.5rem; }

  .hero-cta { gap: 0.6rem; }

  .hero-cta .btn { padding: 0.62rem 1.05rem; font-size: 0.9rem; }


  .evidence-band,
  .pillars-section,
  .features-section,
  .workflow-section,
  .failure-section,
  .page-hero,
  .pub-section { padding-left: 1rem; padding-right: 1rem; }

  .content-wrap { padding-left: 1rem; padding-right: 1rem; }


  .cta-banner { padding: 1.75rem 1.4rem; }


  .failure-block { font-size: 0.72rem; }

  .code-block { font-size: 0.75rem; }
}

/* --- Logo -----------------------------------------------------------------
   The mark is an SVG; the wordmark is HTML text. The old logo baked the word
   "Velvet" into the SVG as a live <text> element in system-ui, so it rendered
   as a different typeface on every platform. As text it simply matches the
   rest of the site. */
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  height: 26px;
  width: 26px;
}

/* Restate the light/dark swap here: these rules appear after the generic
   .logo-light/.logo-dark ones above, so they need to win on their own. */
.logo-mark.logo-light { display: block; }
.logo-mark.logo-dark { display: none; }

:root[data-theme="dark"] .logo-mark.logo-light { display: none; }

:root[data-theme="dark"] .logo-mark.logo-dark { display: block; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-mark.logo-light { display: none; }

  :root:not([data-theme="light"]) .logo-mark.logo-dark { display: block; }
}

.logo-word {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--color-text);
}

.site-logo:hover { text-decoration: none; }
.site-logo:hover .logo-word { color: var(--color-primary); }

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.3rem;
}

.footer-logo .logo-mark { height: 22px; width: 22px; }
.footer-logo .logo-word { font-size: 1.05rem; }

/* Quickstart snippets are short; wrap them rather than showing a scrollbar
   inside a small card. */
.step-card .code-block {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.chart-section-alt > .section-head,
.chart-section-alt > .chart,
.chart-section-alt > .chart-note {
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

.chart-svg .grid,
.chart-svg .baseline {
  stroke: var(--color-border);
  stroke-width: 1;
}

.chart-svg .tick,
.chart-svg .row-label,
.chart-svg .val {
  font-family: var(--font-sans);
  fill: var(--color-text-muted);
  font-size: 12px;
}

.chart-svg .val { font-variant-numeric: tabular-nums; font-weight: 600; }
.chart-svg .row:hover .dot-old,
.chart-svg .row:hover .dot-new { r: 8; }


/* Single-card variant of the failure exhibit. */
.failure-solo {
  max-width: 760px;
  margin: 0 auto;
}

/* --- What you can verify --- */
.verify-section {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1000px) { .verify-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px)  { .verify-grid { grid-template-columns: 1fr; }
}

.verify-card {
  background: var(--surface-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.verify-card:hover { border-color: var(--color-primary-light); box-shadow: var(--shadow-md); }

.verify-card h3 {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
}

.verify-card p {
  margin: 0 0 1.1rem;
  font-size: 0.93rem;
  line-height: 1.62;
  color: var(--color-text-muted);
  flex: 1;
}

.verify-code {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--color-primary);
  background: var(--tint-primary);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 0.55rem 0.7rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* --- Teaching --- */
.teaching-section {
  background: var(--surface-sunken);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 4.5rem 1.5rem;
}

.teaching-inner {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 900px) { .teaching-inner { grid-template-columns: 1fr; gap: 2rem; }
}

.teaching-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.teaching-text h2 {
  margin: 0.75rem 0 1.25rem;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.25;
  color: var(--color-text);
}

.teaching-text p {
  margin: 0 0 1rem;
  font-size: 0.99rem;
  line-height: 1.72;
  color: var(--color-text-secondary);
  max-width: 68ch;
}

.teaching-points { display: flex; flex-direction: column; gap: 1rem; }

.teaching-point {
  background: var(--surface-raised);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
}

.teaching-point h4 {
  margin: 0 0 0.3rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
}

.teaching-point p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}

.teaching-point code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: var(--color-primary);
}

/* --- Documentation sidebar ------------------------------------------------
   docs-toc.js lifts the page's inline "Contents" section out of the article
   and drops it in here as a sticky column. Without JS the list simply stays
   in place at the top of the page. */
.content-wrap.docs-layout {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.docs-toc {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
  max-height: calc(100vh - var(--header-height) - 3rem);
  overflow-y: auto;
  padding: 1rem 0 2rem;
  font-size: 0.9rem;
}

.docs-toc-title {
  margin: 0 0 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.docs-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: docs-toc;
  border-left: 1px solid var(--color-border);
}

.docs-toc li {
  margin: 0;
  line-height: 1.35;
  counter-increment: docs-toc;
}

.docs-toc a {
  display: block;
  padding: 0.3rem 0.75rem;
  margin-left: -1px;
  border-left: 2px solid transparent;
  color: var(--color-text-secondary);
  text-decoration: none;
}

.docs-toc a::before {
  content: counter(docs-toc) ". ";
  color: var(--color-text-secondary);
  opacity: 0.6;
}

.docs-toc a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.docs-toc a.is-current {
  color: var(--color-accent);
  font-weight: 600;
  border-left-color: var(--color-accent);
}

@media (max-width: 960px) {
  .content-wrap.docs-layout {
    display: block;
  }

  .docs-toc {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0 0 1.5rem;
  }
}

/* --- Community page -------------------------------------------------------
   Short sections of two or three lines each, so the article's default
   heading and paragraph rhythm leaves too much air between them. */
.page-community .page-article section > h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.page-community .page-article p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.page-community .page-article ul,
.page-community .page-article ol {
  margin-bottom: 0.75rem;
}

.page-community .page-article li {
  margin-bottom: 0.25rem;
  line-height: 1.55;
}

/* --- Sibling project band -------------------------------------------------
   Points at Veil, the lab's verifier for distributed protocols. */
.sibling-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.sibling-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}

.sibling-label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* The wordmark stands in for the project name, so it is sized like the
   heading it replaced. Its two files carry baked-in colours, so the theme
   picks one with the .logo-light/.logo-dark rules used by the site logo. */
.sibling-logo {
  display: inline-block;
  margin: 0 0 0.75rem;
}

.sibling-logo-img {
  height: 2.1rem;
  width: auto;
}

.sibling-logo:hover .sibling-logo-img {
  opacity: 0.85;
}

.sibling-text p:last-child {
  margin: 0;
  max-width: 62ch;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.sibling-card .btn {
  flex: none;
}

@media (max-width: 760px) {
  .sibling-card {
    padding: 1.5rem 1.25rem;
  }

  .sibling-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
