/* ============================================
   NEXOR 360 — Base / Reset / Typography
   ============================================ */

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-weight: var(--weight-normal);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--dark-text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Headings --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: var(--leading-tight);
  font-weight: var(--weight-bold);
}

h2.section-heading {
  font-size: var(--text-2xl);
  color: var(--green-primary);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--green-light);
  margin-bottom: var(--space-8);
  letter-spacing: -0.02em;
}

h3.subsection-heading {
  font-size: var(--text-lg);
  color: var(--dark-text);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--green-primary);
}

h4 {
  font-size: var(--text-base);
  color: var(--gray-700);
  font-weight: var(--weight-semibold);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* --- Body Text --- */
p {
  margin-bottom: var(--space-4);
  max-width: 70ch;
}

strong {
  font-weight: var(--weight-semibold);
}

a {
  color: var(--green-primary);
  text-decoration: none;
  transition: color var(--ease-default);
}

a:hover {
  color: var(--green-dark);
}

/* --- Lists --- */
ul, ol {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  line-height: var(--leading-relaxed);
}

li::marker {
  color: var(--green-primary);
}

/* --- Code --- */
code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--gray-100);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  color: var(--green-dark);
}

/* --- Selection --- */
::selection {
  background: var(--green-light);
  color: var(--dark-text);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--gray-300);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* --- HR --- */
hr {
  border: none;
  height: 1px;
  background: var(--gray-200);
  margin: var(--space-8) 0;
}
