@import url("./_primitives.css");

/* ===================================== */
/* ---------- 1. Normalize ---------- */
/* ===================================== */

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

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
}

* {
  margin: 0;
  padding: 0;
  font: inherit;
}

body {
  min-height: 100svh;
}

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

/* ===================================== */
/* ---------- 2. Variables ---------- */
/* ===================================== */

:root {
  /* ---------- 2.2 Semantic ---------- */

  /* 2.2.1 Typography */
  /* TODO: Add semantic typography */

  /* 2.2.2 Spacing */
  /* TODO: Add semantic spacing */

  /* 2.2.3 Sizes */
  /* TODO: Add semantic sizes */

  /* 2.2.4 Colors */
  /* TODO: Add semantic colors */

  /* 2.2.5 Borders */
  /* TODO: Add semantic borders */

  /* 2.2.6 Shadows */
  /* TODO: Add semantic shadows */

  /* ---------- 2.3 Semantic Desktop ---------- */
  @media (width >= 48rem) {
    /* TODO: Override desktop semantic tokens */
  }
}

/* ===================================== */
/* ---------- 3. Globals ---------- */
/* ===================================== */

/* ---------- 3.1 Fonts ---------- */
@font-face {
  font-family: "Poppins";
  src: url(../fonts/Poppins-Regular.woff2) format(woff2);
  font-weight: 400;
}

@font-face {
  font-family: "Poppins";
  src: url(../fonts/Poppins-SemiBold.woff2) format(woff2);
  font-weight: 600;
}

@font-face {
  font-family: "Poppins";
  src: url(../fonts/Poppins-Medium.woff2) format(woff2);
  font-weight: 500;
}

body {
  font-family: Poppins;
}
/* ---------- 3.2 Styles ---------- */

body {
  background-color: var(--graphite-700);
}

/* ===================================== */
/* ---------- 4. Layout ---------- */
/* ===================================== */

body {
  display: grid;
  padding-inline: var(--space-200);
  padding-block: var(--space-150);
  grid-template-rows: auto 1fr;
}

main {
  display: grid;
  align-items: center;
}

/* ===================================== */
/* ---------- 5. Components ---------- */
/* ===================================== */

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--space-400);

  .hero__text-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--space-100);
    text-align: center;

    .hero__title {
      color: var(--gray-100);
      letter-spacing: -1px;
      line-height: var(--lh-110);
      font-size: var(--fs-175);
      font-weight: var(--fw-semibold);
    }

    .hero__subtitle {
      color: var(--gray-250);
      line-height: var(--lh-175);
      font-size: var(--fs-75);
      font-weight: var(--fw-regular);
    }
  }

  .hero__button-wrapper {
    display: flex;
    gap: var(--space-100);
    justify-content: center;

    .hero__button-start,
    .hero__button-results {
      border-radius: var(--br-150);
      padding-inline: var(--space-150);
      padding-block: var(--space-50);
    }

    .hero__button-start-text,
    .hero__button-results-text {
      letter-spacing: -0.25px;
      font-size: var(--fs-87-5);
      font-weight: var(--fw-medium);
    }

    .hero__button-start {
      color: var(--gray-850);
      background: linear-gradient(180deg, #d8d8d8 0%, #727272 100%);
    }

    .hero__button-results {
      color: var(--gray-50);
      background: linear-gradient(180deg, #594ddb 0%, #372f94 100%);
    }
  }
}

.sidebar {
  position: fixed;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding-block: var(--space-100);
  padding-inline: var(--space-150);
  width: 100%;
  height: 4rem;
  background: linear-gradient(
    to bottom,
    oklch(20% 0.014 250deg),
    oklch(16.5% 0.016 250deg)
  );
}

/* ===================================== */
/* ---- 6. Utilities / Modifiers ---- */
/* ===================================== */
