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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

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

img {
  max-width: 100%;
  height: auto;
  border: 0;
}

p {
  margin: 0 0 1rem;
}

code {
  font-family: "JetBrains Mono", "SFMono-Regular", ui-monospace, "Fira Code", monospace;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 0.18em 0.42em;
  border-radius: 0.45rem;
  font-size: 0.92em;
}

ul,
ol {
  margin: 0 0 1.2rem;
  padding-left: 1.35rem;
}

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