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

html,
body {
  height: 100%;
}

html {
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  max-width: 100vw;
  font-family: var(--font-sans);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--color-bg);
  /* Subtle crop-row micro-pattern — stylized field lines */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='44'%3E%3Cpath d='M0 22 C35 17 105 27 140 22' stroke='%231a1f36' stroke-width='0.55' fill='none' opacity='0.13'/%3E%3Cpath d='M0 44 C35 39 105 49 140 44' stroke='%231a1f36' stroke-width='0.55' fill='none' opacity='0.09'/%3E%3C/svg%3E");
  line-height: 1.55;
  transition: background-color 0.3s ease, color 0.3s ease;
}

:root[data-theme="dark"] body {
  background-image:
    radial-gradient(circle at 16% 18%, rgba(115, 215, 0, 0.09), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(115, 215, 0, 0.06), transparent 30%),
    linear-gradient(180deg, #0b0e1a 0%, #0b0e1a 100%);
}

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

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

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

:focus-visible {
  outline: 2px solid rgba(115, 215, 0, 0.60);
  outline-offset: 2px;
  border-radius: 8px;
}

.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;
}
