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

/* Prevent font size inflation */
html {
  -moz-text-size-adjust: none;
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
}

/* Remove default margin in favour of better control in authored CSS */
body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd {
  margin-block-end: 0;
}

/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
ul[role="list"],
ol[role="list"] {
  list-style: none;
}

/* Set core body defaults */
body {
  min-height: 100vh;
  line-height: 1.5;
  margin: 0;
  background-color: var(--Violet);
  color: white;
  font-family: "Open sans", sans-serif;
  font-weight: 400;
  text-align: center;

  background-image: url("./images/bg-mobile.svg");
  background-position: center top; /* Adjust based on design */
  /* background-size: contain; */
  background-repeat: no-repeat;
}

/* Set shorter line heights on headings and interactive elements */
h1,
h2,
h3,
h4,
button,
input,
label {
  line-height: 1.1;
}

/* Balance text wrapping on headings */
h1,
h2,
h3,
h4 {
  text-wrap: balance;
}

/* A elements that don't have a class get default styles */
a:not([class]) {
  text-decoration-skip-ink: auto;
  color: currentColor;
}

/* Make images easier to work with */
img,
picture {
  max-width: 100%;
  display: block;
}

/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
}

/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
  min-height: 10em;
}

/* Anything that has been anchored to should have extra scroll margin */
:target {
  scroll-margin-block: 5ex;
}

:root {
  /* Typography System */
  --font-size-4: 0.25rem; /* 4px */
  --font-size-8: 0.5rem; /* 8px */
  --font-size-10: 0.625rem; /* 10px */
  --font-size-12: 0.75rem; /* 12px */
  --font-size-14: 0.875rem; /* 14px */
  --font-size-16: 1rem; /* 16px */
  --font-size-18: 1.125rem; /* 18px */
  --font-size-20: 1.25rem; /* 20px */
  --font-size-24: 1.5rem; /* 24px */
  --font-size-30: 1.875rem; /* 30px */
  --font-size-36: 2.25rem; /* 36px */
  --font-size-44: 2.75rem; /* 44px */
  --font-size-52: 3.25rem; /* 52px */
  --font-size-62: 3.875rem; /* 62px */
  --font-size-74: 4.625rem; /* 74px */
  --font-size-86: 5.375rem; /* 86px */
  --font-size-98: 6.125rem; /* 98px */

  /*Clamping/Scaling Typo scale */

  --clamp-font-20: clamp(1.25rem, 2vw, 1.5rem); /* 20px → scales to 24px */
  --clamp-font-24: clamp(1.5rem, 2.5vw, 1.875rem); /* 24px → scales to 30px */
  --clamp-font-30: clamp(1.875rem, 3vw, 2.25rem); /* 30px → scales to 36px */
  --clamp-font-36: clamp(2.25rem, 3.5vw, 2.75rem); /* 36px → scales to 44px */
  --clamp-font-44: clamp(2.75rem, 4vw, 3.25rem); /* 44px → scales to 52px */
  --clamp-font-52: clamp(3.25rem, 5vw, 3.875rem); /* 52px → scales to 62px */
  --clamp-font-62: clamp(3.875rem, 6vw, 4.625rem); /* 62px → scales to 74px */
  --clamp-font-74: clamp(4.625rem, 7vw, 5.375rem); /* 74px → scales to 86px */
  --clamp-font-86: clamp(5.375rem, 8vw, 6.125rem); /* 86px → scales to 98px */
  --clamp-font-98: clamp(6.125rem, 9vw, 7rem); /* 98px → scales to 112px */

  /* Clamp variations */
  --clamp-font-24-v2: clamp(1.5rem, 2.5vw, 2.75rem); /* 24px → scales to 44px */
  --clamp-font-24-v3: clamp(1.5rem, 3vw, 3rem); /* 24px → scales to 48px */

  /* Spacing System */
  --spacing-2: 0.125rem; /* 2px */
  --spacing-4: 0.25rem; /* 4px */
  --spacing-8: 0.5rem; /* 8px */
  --spacing-12: 0.75rem; /* 12px */
  --spacing-16: 1rem; /* 16px */
  --spacing-24: 1.5rem; /* 24px */
  --spacing-32: 2rem; /* 32px */
  --spacing-48: 3rem; /* 48px */
  --spacing-64: 4rem; /* 64px */
  --spacing-80: 5rem; /* 80px */
  --spacing-96: 6rem; /* 96px */
  --spacing-128: 8rem; /* 128px */

  /* colors */
  --Violet: hsl(257, 40%, 49%);
  --Soft-Magenta: hsl(300, 69%, 71%);
}

.wrapper {
  max-width: 300px;
}

.container {
  margin: 0 auto;
}

.header {
}

.main {
}

.logo {
  max-width: 125px;
  margin: var(--spacing-32) 0 var(--spacing-64);
}

.icons {
  display: flex;
  justify-content: center;
  gap: var(--spacing-12);

  margin: 0 0 var(--spacing-48) 0;
}

.icon {
  border: 1px solid white;
  outline: white;
  padding: var(--spacing-8);

  background: var(--Violet);

  border-radius: 50%;
  width: 32px;
}

.section__huddle-landing-page {
}
.img-container {
}
.content__main {
}
.heading__intro {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  font-weight: 600;

  margin-top: var(--spacing-64);
}

.text__description {
}

.btn {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  background: white;
  width: 100%;

  border-radius: 25px;

  padding: var(--spacing-12) var(--spacing-24);
}

.btn__register {
  color: var(--Violet);
  max-width: 230px;

  margin: var(--spacing-24) 0 var(--spacing-64);
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.15);
}

.btn:hover,
.btn:active {
  background: var(--Soft-Magenta);
  color: white;
}
.icon:hover,
.icon:active {
  border: 1px solid hsl(300, 69%, 61%);
  fill: hsl(300, 69%, 61%);
}

/* tablet */
@media (min-width: 48em) {
  body {
    background-image: url("images/bg-desktop.svg");
    /* background-position: bottom center; */
    background-size: cover;
  }

  .wrapper {
    max-width: 650px;
  }

  .logo {
    max-width: 150px;
  }

  .icon {
    width: 36px;
  }

  .heading__intro {
    font-size: var(--clamp-font-30);
  }

  .btn__register {
    transition: 0.3s ease-in-out;

    box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.15);
  }

  .btn__register:hover {
    transform: translateY(10%);

    box-shadow: 0px 3px 7px rgba(0, 0, 0, 0.15);
  }
}

/* pc */
@media (min-width: 90em) {
  .wrapper {
    max-width: 1260px;

    display: grid;
    place-content: center;
  }

  body {
    background-position: left;
    background-size: contain;

    text-align: start;
  }

  .logo {
    max-width: 200px;

    margin: var(--spacing-48) 0 var(--spacing-96);
  }

  .icon {
    width: 42px;
  }

  .heading__intro {
    margin-top: var(--spacing-32);

    font-size: var(--font-size-44);
  }

  .text__description {
    max-width: 465px;
    opacity: 0.8;
  }

  .section__huddle-landing-page {
    /* display: grid;
    grid-template-columns: repeat(2, 1fr); */
    display: flex;
    gap: var(--spacing-48);
  }

  .img-container {
    flex: 1.3;
  }

  .content__main {
    flex: 1;
  }

  .btn {
    padding: var(--spacing-12) var(--spacing-32);
  }

  .btn__register {
    text-align: center;
    max-width: 175px;

    box-shadow: 0px 7px 7px rgba(0, 0, 0, 0.3);
  }

  .icons {
    margin: var(--spacing-32) 0;

    justify-content: end;
  }
}
