:root {
  /* FONT SIZE : Scale= 16 x1.25 */
  --text-sm: 1.4rem; /* 1.28rem*/
  --text-link: 1.6rem; /* 1.4rem */
  --text-paragraph: 2rem; /* 1.6rem */
  --text-h6: 2.3rem;
  --text-h5: 2.5rem;
  --text-h4: 3.125rem;
  --text-h3: 3.906rem;
  --text-h2: 4.883rem;
  --text-h1: 6.104rem;

  /* SPACING */
  --space-xs: 0.4rem; /* 4px */
  --space-sm: 0.8rem; /* 8px */
  --space-md: 1.6rem; /* 16px */
  --space-lg: 3.2rem; /* 32px */
  --space-xl: 6.4rem; /* 64px */
  --space-2xl: 12.8rem; /* 128px */
  /* Guidance:
  Use:
    --space-lg or xl for section spacing
    --space-md for card/grid gap
    --space-sm for text or button spacing */

  /* FONT WEIGHT */
  --fw-300: 300;
  --fw-medium: 600;
  --fw-bold: 700;

  /* LINE HEIGHT */
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;

  /* LETTER SPACING : for big letter gap of heading tags*/
  /* --letter-spacing-tight: -2px; */

  /* FONT FAMILY */
  --ff-body: "Libre Franklin", sans-serif;

  /* COLOR : Tint / Base / Shade */
  /* Use website: maketintsandshades.com */
  --primary-blue: rgb(79, 125, 243);

  /* Secondary */
  --secondary-pale-blue: hsl(223, 100%, 88%);
  --secondary-light-red: hsl(354, 100%, 66%);

  /* Neutral */
  --Gray: hsl(0, 0%, 59%);
  --Very-dark-blue: hsl(209, 33%, 12%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* 62.5% of 16px = 10px */
  /* 62.5% of 24px = 15px */
  /* When browser change font-size it will scale base on browser font-size */
  font-size: 62.5%;
}

body {
  font-family: var(--ff-body);
  font-weight: var(--fw-normal);
  line-height: var(--line-height-normal);
  color: var(--Gray);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: var(--fw-bold);
  line-height: var(--line-height-tight);
  /* letter-spacing: -2px; NOTE: depend on font */
  /* color: black; depend on style*/
}

/* use website Typescale.com */
h1 {
  font-size: var(--text-h1);
}

h2 {
  font-size: var(--text-h2);
}

h3 {
  font-size: var(--text-h3);
}

h4 {
  font-size: var(--text-h4);
}

h5 {
  font-size: var(--text-h5);
}

h6 {
  font-size: var(--text-h6);
}

p {
  /* font size 16px or 20px base on text readability */
  font-size: var(--text-paragraph);
}

a {
  text-decoration: none;
  font-size: var(--text-link);
  display: inline-block;
}

ul {
  list-style: none;
}

span {
  display: inline-block;
}

small {
  font-size: var(--text-sm);
}
/* ====== Styling layout ========= */
.container {
  max-width: 800px;
  width: 80%;
  margin: 0 auto;
}
.page {
  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}
.logo {
  margin: var(--space-xl) 0 var(--space-lg) 0;
}
.header {
  font-weight: var(--fw-300);
  margin-bottom: var(--space-md);
}
.header span {
  font-weight: var(--fw-bold);
  color: var(--Very-dark-blue);
}
.text {
  color: var(--Very-dark-blue);
  margin-bottom: var(--space-lg);
}
.email-form {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  margin-bottom: var(--space-xl);
  align-items: flex-start;
}
.email-input,
.btn-notify {
  padding: var(--space-md) var(--space-lg);
  border-radius: 100px;
}
.form-group {
  flex: 1;
}
.email-input {
  width: 100%;
  border: 1px solid var(--secondary-pale-blue);
  margin-bottom: var(--space-sm);
}
.message {
  padding-left: var(--space-lg);
  color: var(--secondary-light-red);
  text-align: left;
  display: block;
}
.email-input:focus {
  outline-color: var(--primary-blue);
}
.email-input::placeholder {
  font-family: var(--ff-body);
  color: var(--Gray);
  letter-spacing: 1px;
  opacity: 0.6;
}
.btn-notify {
  flex: 0.3;
  border: none;
  background-color: var(--primary-blue);
  border: 1px solid var(--primary-blue);
  box-shadow: 0px 4px 6px rgba(79, 125, 243, 0.3);
  color: #fff;
  letter-spacing: 1px;
  cursor: pointer;
  transition: 0.2s;
}
.btn-notify:hover {
  opacity: 0.8;
}
.image-wrapper {
  width: 100%;
  margin-bottom: var(--space-xl);
}
.main-image {
  width: 100%;
}
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}
.social-group {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
ion-icon {
  font-size: 1.8rem;
  cursor: pointer;
  transition: 0.2s;
}
ion-icon:hover {
  color: var(--primary-blue);
}

footer {
  padding: var(--space-md);
  text-align: center;
}

/* validation style */
.error {
  border-color: var(--secondary-light-red);
  outline: none;
}
.hidden {
  display: none;
}

/* Responesive */
@media (max-width: 540px) {
  html {
    font-size: 50%;
  }
  .header {
    font-size: var(--text-h4);
  }
  .email-form {
    display: block;
  }
  .btn-notify {
    display: block;
    width: 100%;
  }
}
