/* /var/www/e3/website/css/base.css — Reset, body, typography, scrollbars. NO GRAYS. */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body {
  background:
    var(--g-radial),
    radial-gradient(600px 400px at 85% 20%, rgba(15,107,54,.22), transparent 70%),
    radial-gradient(900px 500px at 15% 80%, rgba(52,196,111,.10), transparent 70%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }

a {
  color: var(--green-300);
  text-decoration: none;
  transition: color var(--fast) var(--ease), text-shadow var(--fast) var(--ease);
}
a:hover { color: var(--green-50); text-shadow: var(--glow-soft); }

h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 .6em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: .55em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); }

p  { margin: 0 0 1em; color: var(--text-dim); }
strong { color: var(--text); }
ul { padding-left: 1.1em; }
li { margin: .25em 0; }

code, pre {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2);
  color: var(--green-200);
  border-radius: var(--radius-sm);
  padding: .15em .45em;
  border: 1px solid var(--border);
}

::selection { background: var(--green-500); color: #000; }

/* Scrollbars — slim, modern, black track, GREEN thumb. Never gray. */
* { scrollbar-width: thin; scrollbar-color: var(--green-700) #000; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-track {
  background: #000;
  box-shadow: inset 0 0 6px rgba(52,196,111,.08);
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--green-600), var(--green-800));
  border-radius: 8px;
  border: 1px solid var(--green-900);
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--green-300), var(--green-500));
  box-shadow: var(--glow-soft);
}
*::-webkit-scrollbar-corner { background: #000; }

/* Focus rings — green, never gray */
:focus-visible {
  outline: 2px solid var(--green-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
