/* RESET */

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

html,
body {
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";

  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

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

ol,
ul {
  padding: 0;
  list-style: none;
}

/* FONT */

:root {
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-head: 1.75rem;
  --fs-mobile-head: 1.5rem;
}

h1 {
  font-size: var(--fs-head);
}

@media screen and (max-width: 639px) {
  h1 {
    font-size: var(--fs-mobile-head);
  }
}

/* INPUTS */

button,
input,
select {
  -webkit-appearance: none;
  appearance: none;
  border: none;
  background-color: var(--theme-background-off);
  color: inherit;
  padding: var(--grid-mult);
  border-radius: var(--border-radius);
  transition: background-color 100ms;
}

button,
select {
  cursor: pointer;
}

:is(button, input, select):hover,
:is(button, input, select):focus {
  background-color: var(--theme-background-light);
}

button[type="submit"] {
  font-weight: bold;
  padding-inline: var(--grid-medium);
}

/* UTILITY */

.visually-hidden {
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

:root {
  --grid-tiny: 5px;
  --grid-mult: 10px;
  --grid-small: 20px;
  --grid-medium: 40px;
  --grid-regular: 60px;
  --grid-large: 240px;
}

:root {
  --border-radius-small: 2px;
  --border-radius: 7px;
  --border-radius-large: 12px;
}

main {
  gap: var(--grid-medium);
  padding: var(--grid-regular);
  max-width: 1200px;
}

@media screen and (max-width: 799px) {
  main {
    padding-inline: var(--grid-small);
    padding-block: var(--grid-medium);
    justify-content: center;
  }
}

/* THEME */

:root {
  --c-primary: hsl(248.08, 8.99%, 46.79%);
  --c-primary-text: var(--c-white);
  --c-white: hsl(230, 0%, 100%);
  --c-off-white: hsl(215, 25%, 92%);
  --c-lightest-gray: hsl(215, 18%, 85%);
  --c-light-gray: hsl(215, 15%, 66%);
  --c-white-translucent: #f7f7f7cc;
  --c-dark-gray: hsl(215, 18%, 33%);
  --c-off-black: hsl(215, 22%, 16%);
  --c-black-translucent: #2d2d2dcc;
  --c-black: hsl(215, 55%, 5%);
}

:root {
  color-scheme: light;
  --theme-background: var(--c-white);
  --theme-background-off: var(--c-off-white);
  --theme-background-light: var(--c-lightest-gray);
  --theme-background-translucent: var(--c-white-translucent);
  --theme-text: var(--c-black);
  --theme-text-off: var(--c-dark-gray);
  --theme-shadow: var(--c-dark-gray);
  --theme-blur-c: hsla(230, 25%, 92%, 0.5);
  --theme-blur-px: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --theme-background: var(--c-black);
    --theme-background-off: var(--c-off-black);
    --theme-background-light: var(--c-dark-gray);
    --theme-background-translucent: var(--c-black-translucent);
    --theme-text: var(--c-white);
    --theme-text-off: var(--c-light-gray);
    --theme-shadow: var(--c-off-black);
  }
}

html,
body {
  background-color: var(--theme-background);
  color: var(--theme-text);
}
