<template>
  <div class="mb-4">
    <h1>
      <slot />
    </h1>
    <h2>
      <slot name="subtitle" />
    </h2>
  </div>
</template>

<style scoped lang="scss">


h1, h2 {
  text-align: center;
  text-transform: uppercase;
}

h1 {
  font-size: 4rem;
  line-height: 3.5rem;
  letter-spacing: 0.3rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.5rem;
  line-height: 2rem;
  letter-spacing: 0.2rem;
  margin-left: 1rem;
  margin-right: 1rem;
}

@media (max-width: 1240px) {
  h1 {
    font-size: 2rem;
    line-height: 2.5rem;
  }

  h2 {
    letter-spacing: 0.1rem;
    width: 100%;
  }
}

@media (max-width: 600px) {

  h1, h2 {
    width: 80%;
    margin: auto
  }

  h1 {
    font-size: 2rem;
    line-height: 2.5rem;
    margin-bottom: 18px;
  }

  h2 {
    letter-spacing: 0.1rem;
    font-size: 1.2rem;
  }
}

</style>
