@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Text:wght@400..700&display=swap&subset=latin');

@layer base, layout;

@layer base {
  :root {
    --gray-0:   #FFFFFF;
    --gray-50:  #F9F9FA;
    --gray-100: #EEEEF1;
    --gray-200: #DDDDE3;
    --gray-300: #C7C7D1;
    --gray-400: #94949E;
    --gray-500: #5F5F6D;
    --gray-600: #474752;
    --gray-700: #2E2E38;
    --gray-800: #0B0B0E;
    --white: var(--gray-0);
    --black: var(--gray-800);

    --ff-base: "Red Hat Text", sans-serif;
    --ff-display: "Red Hat Text", sans-serif;

    --title-size: 42px;
    --subtitle-size: 24px;
    --text-size: 18px;
    --logo-width: 180px;

    --primary-800: #172982;
    --primary-700: #142FB8;
    --primary-600: #0D32F2;
    --primary-500: #3354FF;
    --primary-400: #667FFF;
    --primary-300: #99AAFF;
    --primary-200: #CCD4FF;
    --primary-100: #E7EBFE;
    --primary-50:  #F0F3FE;
  }

  .marketplace {
    --logo-width: 130px;
    --primary-800: #490D26;
    --primary-700: #921B4C;
    --primary-600: #C32465;
    --primary-500: #F42D7E;
    --primary-400: #F65798;
    --primary-300: #F881B2;
    --primary-200: #FBABCB;
    --primary-100: #FDD5E5;
    --primary-50:  #FEEAF2;
  }

  h1, h2, h3, h4, h5, h6 {
    font-weight: 500;
    line-height: 1.2;
  }

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

  a,
  button {
    color: var(--primary-500);
    font-weight: 500;
    cursor: revert;
    transition: color ease-in .2s;
  }

  a:hover {
    color: var(--primary-700);
  }

  ol,
  ul,
  menu,
  li {
    list-style: none;
  }

  img {
    max-width: 100%;
  }

  table {
    border-collapse: collapse;
  }

  input,
  textarea {
    user-select: auto;
  }

  textarea {
    white-space: revert;
  }

  strong,
  b {
    font-weight: var(--fw-500);
  }

  ::placeholder {
    color: unset;
  }

  :where([hidden]) {
    display: none;
  }

  body {
    font-family: var(--ff-base);
    color: var(--black);
    font-size: 16px;
    line-height: 1.45;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
  }
}

@layer layout {
  .errors-logo {
    width: 100%;
    display: flex;
    align-items: center;
  }

  .errors-logo img {
    width: var(--logo-width);
  }

  .errors-container {
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 100%;
    width: 100%;
    grid-template-rows: 1fr max-content;
    min-height: 100vh;
  }

  @supports (height: 100svh) {
    .errors-container {
      min-height: 100svh;
    }
  }

  .errors-info {
    width: 100%;
    max-width: 660px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    margin-inline: auto;
  }

  .errors-content {
    display: none;

    &[data-language="es"] {
      display: block;
    }
  }

  .errors-intro {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .errors-intro h1 {
    width: 100%;
    font-family: var(--ff-display);
    font-size: var(--title-size);
    line-height: .9;
    font-weight: 900;
    text-wrap: balance;
    word-break: break-word
  }

  .errors-intro h3 {
    width: 100%;
    font-size: var(--subtitle-size);
    font-weight: 500;
  }

  .errors-explain  {
    margin-top: 0.5rem;
    color: var(--gray-600);
  }

  .errors-explain p {
    font-size: var(--text-size);
  }

  .footer {
    color: var(--gray-500);
    text-align: center;
    padding: 15px;
    font-size: 13px;
  }

  @media (max-width: 576px) {
    .errors-layout {
      --title-size: 40px;
      --subtitle-size: 22px;
      --text-size: 17px;
    }
  }
}
