@font-face {
  font-family: 'TAY Flapjack';
  src: url('../fonts/TAYFlapjack.otf') format('opentype');
  src: url('../fonts/TAYFlapjack.woff') format('woff');
  src: url('../fonts/TAYFlapjack.woff2') format('woff2');
}

@font-face {
  font-family: 'TAY Misprint';
  src: url('../fonts/TAYMisprint.otf') format('opentype');
  src: url('../fonts/TAYMisprint.woff') format('woff');
  src: url('../fonts/TAYMisprint.woff2') format('woff2');
}

html, body {
  margin: 0;
  padding: 0;
}

/* Everything is sized to fit within one screen height, so the page doesn't scroll. */
body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #FFFDF6;
  display: flex;
  flex-direction: column;
}

.company-name {
  font-family: 'TAY Flapjack', Arial, sans-serif;
  font-weight: 500;

  /* Scales down with screen width, but never exceeds 10vh */
  font-size: clamp(3rem, 12vw, 8vh);

  /* Help prevent the 2nd line from wrapping on very narrow screens */
  max-width: 95vw;

  text-align: center;

  margin: 6vh auto 2vh auto;
}

.company-tagline {
  font-family: 'TAY Misprint', Arial, sans-serif;
  font-weight: 300;

  /* Scales down with screen width, but never exceeds 10vh */
  font-size: clamp(1rem, 4vw, 2vh);

  /* Help prevent the 2nd line from wrapping on very narrow screens */
  max-width: 95vw;

  margin: 0 auto 4vh auto;

  text-align: center;
}

.copyright {
  font-family: 'TAY Misprint', Arial, sans-serif;
  font-size: 1vh;
  text-align: center;
  margin: auto 0 2vh 0;
  padding-top: 2vh;
}

.products {
  list-style: none;
  margin: 0 auto;
  padding: 0 16px;
  width: 100%;
  max-width: 640px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(0.75rem, 2.5vh, 1.25rem);
}

.product a {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: clamp(0.5rem, 1.75vh, 1rem) 1rem;
  color: #222;
  text-decoration: none;
  border: 2px solid #222;
  border-radius: 6px;
  background-color: #FFFFFF;
  box-shadow: 4px 4px 0 #222;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product a:hover,
.product a:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 #222;
}

.product-image {
  flex: 0 0 auto;
  height: clamp(72px, 16vh, 144px);
  aspect-ratio: 2 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  overflow: hidden;
}

.product-image img {
  display: block;
}

/* Matches the dark backdrop the logo sits on at e.ggtimer.com */
.product-image--eggtimer {
  background: radial-gradient(circle at 50% 120%, #ff0095 0, transparent 60%), #333;
}

.product-image--eggtimer img {
  height: 80%;
}

.product-image--book img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.product-name {
  font-family: 'TAY Flapjack', Arial, sans-serif;
  font-size: 1.4rem;
  line-height: 1.15;
}

.product-description {
  font-family: 'TAY Misprint', Arial, sans-serif;
  font-size: 0.85rem;
  line-height: 1.35;
}

@media (max-width: 420px) {
  .product-image {
    height: clamp(64px, 13vh, 108px);
  }

  .product a {
    gap: 0.9rem;
  }

  .product-description {
    font-size: 0.75rem;
  }

  .product-name {
    font-size: 1.15rem;
  }
}


.contact {
  font-family: 'TAY Misprint', Arial, sans-serif;
  font-size: 0.72rem;
  text-align: center;
  margin: 4vh auto 0 auto;
  padding: 0 16px;
  max-width: 640px;
  overflow-wrap: anywhere;
}

.contact a {
  color: #222;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact a:hover,
.contact a:focus-visible {
  color: #ff0095;
}
