* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #e0e0e0;
  background: #1a1a2e;
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

h1, h2, h3 {
  color: #f0f0f0;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2rem;
  border-bottom: 2px solid #444;
  padding-bottom: 0.5rem;
  margin-bottom: 1.5rem;
}

textarea {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  background: #16213e;
  color: #e0e0e0;
  border: 1px solid #444;
  border-radius: 6px;
  resize: vertical;
}

textarea:focus {
  outline: none;
  border-color: #6c63ff;
}

button {
  padding: 0.6rem 1.5rem;
  font-size: 1rem;
  cursor: pointer;
  background: #6c63ff;
  color: white;
  border: none;
  border-radius: 6px;
  margin-top: 0.75rem;
  transition: background 0.15s;
}

button:hover:not(:disabled) {
  background: #5a52d5;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-container {
  margin: 2rem 0;
}

.blzr-embed {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
  margin-top: 1rem;
  background: #0f0f23;
}

.phoneme-display {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9rem;
  color: #8888aa;
  margin-top: 0.5rem;
  min-height: 1.5em;
}

section {
  margin-bottom: 2rem;
}

/* Research content */

.research-content {
  margin-top: 2rem;
}

.research-section {
  margin-bottom: 2.5rem;
}

.research-section p {
  margin-bottom: 0.75rem;
}

.research-section h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.4rem;
  font-size: 1.1rem;
  color: #c0c0d0;
}

.research-section ul,
.research-section ol {
  margin: 0.5rem 0 1rem 1.5rem;
}

.research-section li {
  margin-bottom: 0.4rem;
}

figure {
  margin: 1.25rem 0;
  padding: 1rem;
  background: #16213e;
  border: 1px solid #333;
  border-radius: 6px;
}

figcaption {
  font-size: 0.85rem;
  color: #8888aa;
  margin-top: 0.5rem;
  text-align: center;
}

pre.diagram {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  color: #b0b0cc;
  line-height: 1.5;
  overflow-x: auto;
}

code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.9em;
  background: #16213e;
  padding: 0.15em 0.4em;
  border-radius: 3px;
  color: #a0a0cc;
}

ol.references {
  margin: 0.5rem 0 1rem 1.5rem;
}

ol.references li {
  margin-bottom: 0.6rem;
  font-size: 0.95rem;
  color: #b0b0c0;
}

ol.references em {
  color: #c0c0d8;
}
