/* ==========================================================================
   Design tokens
   ========================================================================== */

:root {
  --color-teal: #1bb9a9;
  /* WCAG passing color */
  /*--color-teal: #137c72;*/
  --color-charcoal: #302e2e;
  --color-white: #fff;
}

/* ==========================================================================
   Typography
   ========================================================================== */

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("Poppins"),
    url("/assets/fonts/poppins/Poppins-Regular.woff2") format("woff2"),
    url("/assets/fonts/poppins/Poppins-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "RobotoMono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("RobotoMono"),
    url("/assets/fonts/roboto/RobotoMono-Light.woff2") format("woff2"),
    url("/assets/fonts/roboto/RobotoMono-Light.ttf") format("truetype");
}

@font-face {
  font-family: "NunitoSans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: local("NunitoSans"),
    url("/assets/fonts/nunito_sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.woff2") format("woff2"),
    url("/assets/fonts/nunito_sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf") format("truetype");
}

/* ==========================================================================
   Base / reset
   ========================================================================== */

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

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: var(--color-teal);
  color: var(--color-white);
}

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

address {
  font-style: normal;
}

:focus-visible {
  outline: 3px solid var(--color-charcoal);
  outline-offset: 3px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

.page {
  display: grid;
  min-height: 100vh;
}

/* ==========================================================================
   Awning
   ========================================================================== */

.awning {
  height: 2.25rem;
  background-image: url("assets/images/awning-stripe.svg");
  background-repeat: repeat-x;
  background-size: 270px 35px;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  width: 100%;
  padding: 1.5rem 2rem 5rem;
}
@media screen and (min-width: 500px) {
  .hero {
    /* Caps to comfortable single-column reading width */
    max-width: 535px;
    margin-inline: auto;
  }
}
@media screen and (min-width: 768px) {
  .hero {
    /* Expands to full three-column layout width */
    max-width: 950px;
  }
}

.hero__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 4rem;
}
@media screen and (min-width: 768px) {
  .hero__header {
    /* Constrains logo/header to a narrower column for visual balance at desktop width */
    max-width: 715px;
    margin-inline: auto;
  }
}

.coming-soon {
  font-family: "RobotoMono", sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  background: var(--color-charcoal);
  padding: 0.25rem 1.5rem;
  border-radius: 0.375rem;
  text-transform: uppercase;
  margin: 2rem 0 0;
}

.hero__logo {
  width: 100%;
  height: auto;
}
@media screen and (min-width: 768px) {
  .hero__logo {
    width: 60%;
  }
}

.hero__body {
  display: grid;
  grid-template-areas:
    "sup"
    "headline"
    "yum";
  gap: 4rem;
  width: 100%;
  margin: 0 auto;
  justify-items: center;
}
@media screen and (min-width: 768px) {
  .hero__body {
    grid-template-columns: 1fr 1.5fr 1fr;
    grid-template-areas:
      "sup headline yum";
    align-items: center;
  }
}

.hero__headline {
  grid-area: headline;
  width: 100%;
  margin: 0;
}
@media screen and (min-width: 500px) {
  .hero__headline {
    margin: 4rem 0;
  }
}
@media screen and (min-width: 768px) {
  .hero__headline {
    margin: 2rem 0;
  }
}

.character {
  position: relative;
  grid-area: sup;
  width: 80%;
}

.character--yum {
  grid-area: yum;
}

.starburst {
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
}

.character__figure {
  width: 80%;
  margin-left: auto;
}

.character--yum .starburst {
  /* Resets base .starburst position (top-left) to bottom-right; slight tilt for playfulness */
  top: auto;
  left: auto;
  bottom: 10%;
  right: 0;
  rotate: 10deg;
}

.character--yum .character__figure {
  margin-left: 0;
  width: 65%;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  background-color: var(--color-charcoal);
  padding: 1.5rem 2rem 5rem;
  text-align: center;
}

.site-footer__tagline {
  font-size: 1.25rem;
  line-height: 1.6;
}
@media screen and (min-width: 500px) {
  .site-footer__tagline {
    max-width: 535px;
    margin-inline: auto;
  }
}

.site-footer__social-link {
  display: inline-block;
  margin: 4rem 0 1rem;
}

.site-footer__social-icon {
  width: 2.25rem;
  height: 2.25rem;
}

.site-footer__address {
  margin-bottom: 1.5rem;
}

.site-footer__copyright {
  font-family: "Nunito Sans", sans-serif;
  font-size: 0.75rem;
  line-height: 1;
}