@import "tailwindcss";
@plugin "../tailwind-plugin/tw-theme.mjs";
@plugin "../tailwind-plugin/tw-bs-grid.mjs";
@plugin "@tailwindcss/forms";
@plugin "@tailwindcss/typography";

@import "./safe.css";
@import "./utilities.css";

@layer base {
  @import "./base.css";
}

@layer components {
  @import "./components.css";
  @import "./navigation.css";
  @import "./buttons.css";
  @import "./animations.css";
}

@theme {
  --breakpoint-sm: 540px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1320px;

  --shadow: 0px 4px 40px rgba(0, 0, 0, 0.05);
  --shadow-4xl: 0 50px 100px 0 rgba(0, 0, 0, 0.1);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-3xl-sm: 19.6px;
}

:root {
  --text-color: #aaa;
  --text-color-light: #f5f5f7;
  --primary-color: #0093ff;
  --primary-color-accent: #3961d0;
  --primary-color-active: #0062cc;
  --ring: #0069d9;
}

.deprecated-grid {
  display: grid;
  grid-gap: 0 0.625rem;
  grid-template-columns: repeat(4, [col-start] 1fr);
  max-width: 1140px;
  margin: 0 1rem;

  @media (min-width: 600px) {
    grid-template-columns: repeat(12, [col-start] 1fr);
    grid-gap: 0 1rem;
    margin: 0 5rem;
  }

  @media (min-width: 800px) {
    grid-gap: 0 2rem;
  }

  @media (min-width: 1300px) {
    margin-right: auto;
    margin-left: auto;
  }

  > * {
    grid-column: col-start / -1;
  }
}

.button {
  display: inline-block;
  padding: 0.875rem 2rem;

  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.5;
  text-decoration: none;

  background-color: var(--primary-color);
  border-radius: 1.685rem;
  box-shadow: 0 3px 5px rgb(0 0 0 / 10%);

  transition: background-color 0.15s ease-in-out;

  &:hover {
    background-color: var(--primary-color-accent);
    text-decoration: none;
  }

  &:active {
    background-color: var(--primary-color-active);
  }

  &:focus-visible {
    outline: 0.25rem solid var(--ring);
  }
}

.button--xsmall {
  padding: 0.25rem 0.75rem;

  font-size: 0.625rem;
}

.button--small {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;

  font-size: 0.875rem;
}

.button--full-width {
  width: 100%;
}
