body {
  background: linear-gradient(to bottom, #1b1526, #2a2139);
  color: #f4eee4;
  font-family: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.05rem;
  text-shadow: 0 0 1px #000000aa;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Orbitron', 'Inter', sans-serif;
  font-weight: 700;
  color: #f92aad;
  text-shadow: 0 0 3px #100c0f, 0 0 6px #dc078e55, 0 0 15px #f92aad55;
  margin-bottom: 0.6em;
}

a {
  color: #72f1b8;
  text-decoration: none;
  border-bottom: 1px dashed #72f1b880;
  transition: color 0.2s, border-color 0.2s;
}
a:hover {
  color: #03edf9;
  border-color: #03edf9aa;
  text-shadow: 0 0 6px #03edf955;
}

blockquote {
  border-left: 4px solid #f87c32;
  background: #34294f55;
  padding: 0.75em 1em;
  color: #f4eee4;
  font-style: italic;
  text-shadow: 0 0 1px #000;
}

code {
  background: #2a2139;
  color: #f87c32;
  border-radius: 0.3em;
  font-size: 0.95em;
  text-shadow: 0 0 3px #100c0f, 0 0 5px #f87c3244;
}

pre {
  background: linear-gradient(to bottom, #2a2139 75%, #34294f);
  padding: 1em;
  border-radius: 0.6em;
  overflow-x: auto;
  box-shadow: 0 0 10px #00000055;
}

table {
  border-collapse: collapse;
  margin: 1.2em auto;
  width: 100%;
  background: #2a2139dd;
  box-shadow: 0 0 8px #00000055;
}
th, td {
  border: 1px solid #3c3250;
  padding: 0.6em 0.9em;
}
th {
  background: #34294f;
  color: #72f1b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.theorem, .lemma, .proof {
  border-left: 4px solid #f92aad;
  background: #34294f55;
  padding: 0.75em 1em;
  margin: 1em 0;
  box-shadow: 0 0 6px #f92aad33;
}

figure {
  margin: 1.5em auto;
  text-align: center;
}
figcaption {
  margin-top: 0.5em;
  font-size: 0.9em;
  color: #ccc;
}

.footnotes {
  font-size: 0.9em;
  color: #aaa;
  border-top: 1px solid #3c3250;
  padding-top: 0.5em;
}

hr {
  border: none;
  height: 2px;
  background: linear-gradient(to right, #f92aad, #03edf9);
  margin: 2em 0;
  opacity: 0.8;
}

ul, ol {
  padding-left: 1.4em;
}
li::marker {
  color: #f87c32;
}

.katex {
  color: #f4eee4;
  text-shadow: 0 0 1px #000, 0 0 4px #03edf933;
}
