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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  z-index: 0;
  margin: 0;
  background: #071510;
  color: var(--text-strong);
  -webkit-font-smoothing: antialiased;
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: -8% -6% -8% -6%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 84% 10%, rgba(31, 143, 95, 0.18), transparent 28%),
    radial-gradient(circle at 12% 22%, rgba(42, 172, 118, 0.12), transparent 24%),
    radial-gradient(circle at 50% 86%, rgba(31, 100, 70, 0.10), transparent 30%),
    linear-gradient(180deg, #071510 0%, #050f0c 100%);
  transform: translateZ(0);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

main {
  display: block;
}

::selection {
  background: rgba(31, 143, 95, 0.18);
  color: var(--text-strong);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Admin pages: light body background, no dark gradient overlay ── */
body.page-admin,
body[class*="page-admin"] {
  background: #f7f3ec;
  color: #1a1f27;
  /* Admin layout needs full viewport width — undo the global overflow-x:hidden
     that exists to clip the front-site background gradient */
  overflow-x: visible;
}

body.page-admin::before {
  display: none;
}
