/* Base body styling */
body {
  background-color: #181818;
  color: #d4d4d4;
  font-family: 'Georgia', 'Times New Roman', serif;
  line-height: 1.7;
  margin: 0;
  padding: 30px;
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* Typography - More elegant fonts */
h1 {
  color: #ffffff;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.8em;
  line-height: 1.2;
  margin: 2.5em 0 1.2em 0;
  font-weight: 700;
  letter-spacing: -0.03em;
  position: relative;
  padding-bottom: 0.5em;
}

h1:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #bb86fc, #03dac6);
  border-radius: 2px;
}

h2 {
  color: #f0f0f0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 2.2em;
  line-height: 1.3;
  margin: 2.2em 0 1em 0;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.3em;
}

h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #03dac6;
  border-radius: 1px;
}

h3 {
  color: #e0e0e0;
  font-family: 'Playfair Display', 'Georgia', serif;
  font-size: 1.8em;
  line-height: 1.3;
  margin: 2em 0 0.8em 0;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.2em;
}

h3:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 1px;
  background: #bb86fc;
  border-radius: 1px;
}

p {
  margin-bottom: 1.8em;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  color: #c0c0c0;
}

/* Links */
a {
  color: #bb86fc;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-bottom: 1px solid transparent;
}

a:hover {
  color: #03dac6;
  border-bottom: 1px solid #bb86fc;
  text-decoration: none;
}

/* Code blocks */
pre {
  background-color: #252525;
  padding: 20px;
  border-radius: 8px;
  overflow-x: auto;
  margin: 2.5em 0;
  font-size: 0.95em;
  line-height: 1.6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  border: 1px solid #333333;
  color: #e0e0e0;
}

code {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.7em;
  background-color: #252525;
  padding: 4px 8px;
  border-radius: 4px;
  color: #f0f0f0;
  border: 1px solid #333333;
}

.org-src-container {
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 0.7em;
  background-color: #252525;
  padding: 4px 8px;
  border-radius: 4px;
  color: #f0f0f0;
  border: 1px solid #333333;
}

/* Blockquotes with color variation */
blockquote {
  border-left: 4px solid #03dac6;
  margin: 2.5em 0;
  padding: 1.2em 1.5em;
  background-color: rgba(30, 30, 30, 0.4);
  font-style: italic;
  font-size: 1.1em;
  line-height: 1.7;
  border-radius: 0 8px 8px 0;
  color: #b0b0b0;
  position: relative;
}

blockquote:before {
  content: """;
  position: absolute;
  left: 10px;
  top: 10px;
  font-size: 3em;
  color: rgba(3, 218, 198, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

blockquote:after {
  content: """;
  position: absolute;
  right: 10px;
  bottom: -10px;
  font-size: 3em;
  color: rgba(3, 218, 198, 0.2);
  font-family: Georgia, serif;
  line-height: 1;
}

/* Different heading colors */
h1:nth-child(odd) {
  color: #ffffff;
}

h2:nth-child(odd) {
  color: #f0f0f0;
}

h3:nth-child(odd) {
  color: #e0e0e0;
}

/* Color variations for content */
p:nth-child(2n) {
  color: #b0b0b0;
}

p:nth-child(3n) {
  color: #a0a0a0;
}

/* Lists */
ul, ol {
  margin: 2em 0;
  padding-left: 1.8em;
}

li {
  margin-bottom: 0.8em;
  line-height: 1.7;
  color: #c0c0c0;
}

/* Horizontal rule */
hr {
  border: none;
  border-top: 1px solid #333333;
  margin: 3em 0;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Container */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Section spacing */
section {
  margin: 3.5em 0;
}

/* Paragraph spacing */
article p:first-child {
  margin-top: 0;
}

article p:last-child {
  margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  body {
    padding: 20px;
    font-size: 18px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  h1 {
    font-size: 2.3em;
    margin: 2em 0 1em 0;
  }
}
.figure {
    font-size: 1.3em;
    margin: 2em 0 1em 0;
    font-family: cursive;
    color:#c20365;
}
