@import "./colors.css";

:root {
  --block-padding: 16px 24px;
  --block-width: initial;

  @media (width > 460px) {
    --block-padding: 24px 32px;
  }

  @media (width > 740px) {
    --block-width: 50%;
  }
}

body {
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Fira Sans",
    "Droid Sans",
    "Helvetica Neue",
    sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-primary);
  overflow-wrap: break-word;
  background-color: var(--main-bg);
  accent-color: var(--accent);
}

p {
  font-size: 16px;
  line-height: 22px;
  letter-spacing: 0.01em;
}

code {
  font-family: "Martian Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  line-height: 22px;
}

a,
button {
  cursor: pointer;

  &:active {
    transform: scale(95%);
  }
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
