/* DroidFarm Base Styles */

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: var(--leading-relaxed);
  color: var(--color-black);
  background-color: var(--color-white);
}

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

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

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

input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-black);
}

h1 { font-size: var(--text-display); }
h2 { font-size: var(--text-h1); }
h3 { font-size: var(--text-h2); }
h4 { font-size: var(--text-h3); }
h5 { font-size: var(--text-h4); }

p {
  color: var(--color-body-gray);
  line-height: var(--leading-relaxed);
}

/* Selection */
::selection {
  background-color: var(--color-black);
  color: var(--color-white);
}

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--color-black);
  outline-offset: 2px;
}

/* Responsive typography */
@media (max-width: 768px) {
  h1 { font-size: var(--text-h1); }
  h2 { font-size: var(--text-h2); }
  h3 { font-size: var(--text-h3); }
  h4 { font-size: var(--text-h4); }
}

@media (max-width: 600px) {
  h1 { font-size: var(--text-h2); }
  h2 { font-size: var(--text-h3); }
}
