/* =========================================================
   Variables
   ========================================================= */
:root {
  --background: #e9ecef;             /* light steel base */
  --foreground: #1b1b1b;             /* dark console text */
  --accent: #000000;                 /* terminal accent */
  --panel-bg: #f5f7f8;               /* light steel panel */
  --header-height: 64px;
  --font-sans: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-mono: "Courier New", monospace;
  --panel-shadow: 0 0 25px rgba(0, 255, 153, 0.08),
                  inset 0 0 8px rgba(0, 0, 0, 0.08);
  --text-glow: none;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0b0e0f;           /* dark steel */
    --foreground: #e2e2e2;           /* neutral text, readable */
    --accent: #00ff99;               /* highlight accent */
    --panel-bg: #101414;
    --panel-shadow: 0 0 25px rgba(0, 255, 153, 0.15),
                    inset 0 0 6px rgba(255, 255, 255, 0.02);
    --text-glow: none;               /* no permanent glow */
  }
}

/* =========================================================
   Body
   ========================================================= */
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  font-size: 1.2em;
  line-height: 1.6;
  text-shadow: var(--text-glow);
}

/* =========================================================
   Panels
   ========================================================= */
.container {
  margin: 2rem auto;
  padding: 2rem;
  background: var(--panel-bg);
  border-radius: 12px;
  box-shadow: var(--panel-shadow);
}

/* =========================================================
   Headings
   ========================================================= */
h1, h2, h3, h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--foreground);
  margin-top: 1.5em;
  transition: text-shadow 0.3s ease, color 0.3s ease;
}

h1 {
  font-size: 2.2rem;
}
h2 {
  font-size: 1.8rem;
}
h3 {
  font-size: 1.5rem;
}
h4 {
  font-size: 1.2rem;
}

/* glow on hover only */
h1:hover, h2:hover, h3:hover, h4:hover {
  color: var(--accent);
  text-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
}

/* =========================================================
   Code blocks
   ========================================================= */
code {
  display: inline-block;
  font-size: 1em;
  font-family: var(--font-mono);
  color: var(--accent);
  background: transparent;
  padding: 0.2em 0.3em;
}

/* =========================================================
   Smooth scroll
   ========================================================= */
html {
  scroll-behavior: smooth;
}

/* =========================================================
   Lead text
   ========================================================= */
.lead {
  color: var(--accent);
  opacity: 0.8;
}

/* =========================================================
   Links
   ========================================================= */
a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
}
a:hover {
  opacity: 0.6;
}

@media (max-width: 768px) {
  body {
    font-size: 1em; /* slightly smaller text */
    padding: 1rem;
  }

  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.3rem;
  }
  h4 {
    font-size: 1.1rem;
  }

  code {
    font-size: 0.95em;
    padding: 0.15em 0.25em;
  }

  .container {
    margin: 1rem auto;
    padding: 1rem;
  }
}