@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

:root {
  --primary-subdued: #e8f5ee;
  --primary-base: #78938A;
  --accent-subdued: #d5d0d0;
  --accent-base: #7b3fe2;
  --red: #e34740;
  --yellow: #e3aa30;
  --white: hsl(0, 0%, 100%);
  --off-white: hsl(0, 0%, 96%);
  --black: hsl(0, 0%, 7%);

  --fs-reg: 1.25rem;

  --fs-md: 2.25rem;
  --fs-lg: 3rem;
  --fs-xl: 3.5rem;
}

@font-face {
  font-family: 'Nectarine';
  src: url('../fonts/nectarine-nectarine-regular-400.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

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

  h1,h2,h3,h4,h5,h6,p,ul,ol,figure {
    margin: 0;
  }

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

  img {
    max-width: 100%;
    display: block;
  }
}

@layer base {
  html {
    font-family: "Poppins", sans-serif;
    line-height: 1.3;
  }

  body {
    margin: 0;
    padding: 0;
    color: var(--black);
    font-size: var(--fs-reg);
    background: var(--off-white);
    display: flex;
  }
  main {
    display: flex;
    flex-grow: 1;
    padding: min(30px, 7%);
    flex-direction: column;
    width: 900px;
    gap: 4rem;
  }
  a {
    text-decoration: none;
    color: inherit;
  }
  p {
    padding-bottom: 12px;
  }

  h1, h2 {
    font-family: 'Nectarine', sans-serif;
    color: var(--yellow, inherit);
    font-size: var(--heading-font-size, var(--fs-md));
    line-height: 1.1;
    text-wrap: balance;

    span {
      display: var(--heading-span-display, inline);
      color: var(--heading-span-foreground, var(--black));
      font-size: var(--heading-span-font-size, inherit);
      font-style: var(--heading-span-style, normal);
    }
  }
}

@layer utilities {
  .visually-first {
    order: -1;
  }
}