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

html {
  /* Reserve classic-scrollbar width so layout doesn’t jump; hide bar until needed */
  overflow-y: auto;
  scrollbar-gutter: stable;
  /* Background must live on html — the gutter is outside body and won’t inherit it */
  background-color: var(--paper);
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(159, 203, 109, 0.22), transparent 55%),
    radial-gradient(90% 60% at 100% 20%, rgba(221, 203, 166, 0.18), transparent 50%),
    linear-gradient(180deg, var(--mist) 0%, var(--paper) 45%, var(--paper-deep) 100%);
  background-attachment: fixed;
  scrollbar-color: rgba(61, 107, 69, 0.35) transparent;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior: none;
}

body {
  background: transparent;
}

html::-webkit-scrollbar-track {
  background: transparent;
}

html::-webkit-scrollbar-thumb {
  background: rgba(61, 107, 69, 0.35);
  border-radius: 999px;
}

html::-webkit-scrollbar-thumb:hover {
  background: rgba(61, 107, 69, 0.5);
}

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

button {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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