@import url('https://fonts.googleapis.com/css2?family=Lora:ital@1&display=swap');

/*
  Math rendering: include MathJax in any page that uses math.
  Add this before your closing </body> tag:

    <script>
      MathJax = { tex: { inlineMath: [['\\(','\\)']], displayMath: [['\\[','\\]']] } };
    </script>
    <script src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-chtml.js"></script>

  Inline:  \( e^{i\pi} + 1 = 0 \)
  Display: \[ \int_0^\infty e^{-x^2} dx = \frac{\sqrt{\pi}}{2} \]
*/

body {
  max-width: 560px;
  margin: 80px auto;
  padding: 0 24px;
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.7;
  color: #222;
  background: #fff;
}

a { color: #222; }
a:hover { color: #b05a20; }

h1 { font-size: 1.1em; font-weight: normal; margin: 0 0 0.2em; }
h1 em { font-family: 'Lora', Georgia, serif; color: #b05a20; }

h2 {
  font-size: 0.75em;
  font-weight: normal;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #999;
  margin: 2em 0 0.75em;
}

h3 { font-size: 1em; font-weight: normal; margin: 1.5em 0 0.25em; }

p { margin: 0 0 1em; }

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin-bottom: 0.3em; }

blockquote {
  margin: 1.5em 0;
  padding-left: 1.2em;
  border-left: 2px solid #e0dbd4;
  color: #666;
  font-style: italic;
}

code {
  font-family: monospace;
  font-size: 0.85em;
  background: #f4f1ec;
  padding: 0.1em 0.35em;
}

pre {
  background: #f4f1ec;
  padding: 1em 1.2em;
  overflow-x: auto;
  font-size: 0.82em;
  line-height: 1.6;
}

pre code { background: none; padding: 0; }

hr {
  border: none;
  border-top: 1px solid #e8e4de;
  margin: 2.5em 0;
}

/* math — display blocks get breathing room and horizontal scroll on overflow */
mjx-container[display="true"] {
  display: block;
  margin: 1.5em 0;
  overflow-x: auto;
  overflow-y: hidden;
}

mjx-container[display="true"] svg,
mjx-container[display="true"] > * {
  max-width: 100%;
}

.math-label {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.math-label .eq-num {
  margin-left: auto;
  font-size: 0.8em;
  color: #aaa;
  flex-shrink: 0;
}

.subtitle { font-size: 0.8em; color: #999; margin: 0 0 1.8em; }
.desc     { font-size: 0.8em; color: #888; margin-left: 1em; }
.more     { font-size: 0.8em; color: #aaa; }

footer { margin-top: 4em; font-size: 0.75em; color: #bbb; }
