:root {
  --bg: #f9f9f9;
  --text: #333;
  --accent: #0077cc;
}

body.dark {
  --bg: #1a1a1a;
  --text: #f0f0f0;
  --accent: #66b3ff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  transition: background 0.3s, color 0.3s;
}

header {
  text-align: center;
  margin-bottom: 2rem;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

header p {
  color: var(--text);
  opacity: 0.8;
}

h2 {
  border-bottom: 2px solid rgba(0,0,0,0.1);
  padding-bottom: 0.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

footer {
  text-align: center;
  margin-top: 3rem;
  color: var(--text);
  opacity: 0.6;
  font-size: 0.9rem;
}


/* Dark-themed code block with orange accents */
pre {
  background-color: #1e1e2f;  /* Deep dark background */
  color: #f8f8f2;            /* Light text for contrast */
  padding: 1rem;
  border-radius: 8px;
  overflow-x: auto;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  border-left: 4px solid #ff8800; /* Orange accent bar */
}

/* Inline code inside pre */
pre code {
  color: #f8f8f2;
  background: none;
  font-family: inherit;
}

/* Orange-accented syntax highlighting */
pre span.keyword { color: #ff8800; font-weight: bold; }   /* Orange keywords */
pre span.string { color: #ffb86c; }                      /* Lighter orange strings */
pre span.comment { color: #888888; font-style: italic; } /* Gray comments */
pre span.function { color: #ffa500; }                    /* Function names in orange */
pre span.number { color: #ff9e00; }                      /* Numbers in orange shades */


.inline-code {
  display: inline-block;
  background-color: #1e1e2f;       /* Dark background */
  color: #ff8800;                  /* Orange text */
  padding: 0.05rem 0.2rem;         /* Small padding */
  font-size: .7em;
  border-radius: 4px;              /* Slightly rounded */
  font-weight: bold;
  font-family: 'Fira Code', monospace;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  border: 1px solid #ff8800;       /* Orange border accent */
  transition: all 0.2s ease;
}

