/* Demo-specific styles for index.html */

/* Base */
body { font-family: var(--font-sans); }

/* Hero title */
.hero-title {
  font-family: 'Stack Sans Notch', sans-serif;
  font-weight: 700;
  font-size: 4rem;
}

/* Demo sections */
.demo-section {
  padding: var(--space-8) var(--space-4);
  border-bottom: var(--border-w) solid var(--border);
}
.demo-section:last-child {
  border-bottom: none;
}

/* Demo rows */
.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  align-items: center;
}

/* Color palette grid */
.color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-2);
}

/* Color swatches */
.color-swatch {
  padding: var(--space-3);
  border-radius: var(--radius);
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 500;
}
.color-swatch.light {
  color: oklch(1 0 0);
}
.color-swatch.dark {
  color: oklch(0.22 0.01 272.71);
}

/* Syntax Highlighting - High Contrast */
code[class*="language-"],
pre[class*="language-"] {
  color: var(--text);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  background: var(--bg-surface);
  border-radius: var(--radius);
}

pre[class*="language-"] {
  padding: var(--space-4);
  margin: var(--space-4) 0;
  overflow-x: auto;
}

/* Token colors - high contrast for light theme */
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata {
  color: #6b7280;
}

.token.punctuation {
  color: #737981;
}

.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted {
  color: #8a8032;
}

.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted {
  color: #3d8d42;
}

.token.operator,
.token.entity,
.token.url {
  color: #b45309;
}

.token.atrule,
.token.attr-value,
.token.keyword {
  color: #6081b7;
}

.token.function,
.token.class-name {
  color: #c026d3;
}

.token.regex,
.token.important,
.token.variable {
  color: #dc2626;
}

.token.important,
.token.bold {
  font-weight: bold;
}

.token.italic {
  font-style: italic;
}