@font-face {
  font-family: "Luckiest Guy";
  src: url("../fonts/luckiest-guy.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-regular.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-bold.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Lato";
  src: url("../fonts/lato-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Barlow Condensed";
  src: url("../fonts/barlow-condensed-black.woff") format("woff");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #055ad3;
  --blue-dark: #0447a8;
  --red: #d30505;
  --ink: #1a1a1a;
  --paper: #fffdf8;
  --max: 1080px;
  --orange: #F07337;
  --orange-dark: #C45220;
  --purple: #63285E;
  --purple-dark: #4A1E46;
  --cream: #FFF8E6;
  --yellow: #FFE604;
  --black: #111111;
}

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

html, body { margin: 0; min-height: 100%; }

body {
  font-family: Lato, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #f2c14a;
}

/* Full-bleed illustrated world */
body { position: relative; }

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #f2c14a;
  background-image: url("../img/bg-desktop.webp");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem 3.25rem 1rem;
}

/* Hero: logo, tagline, one button */
.hero {
  text-align: center;
  padding: 0.7rem 0 4.75rem;
}

.hero img {
  width: min(380px, 78vw);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,0.12)) drop-shadow(0 10px 18px rgba(0,0,0,0.18));
  display: block;
}

.tagline {
  font-family: "Luckiest Guy", "Barlow Condensed", sans-serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  color: #fff;
  letter-spacing: 0.02em;
  margin: 0.7rem 0 1.15rem;
  -webkit-text-stroke: 4px #111;
  paint-order: stroke fill;
  text-shadow:
    3px 3px 0 #111,
    -2px -2px 0 #111,
    2px -2px 0 #111,
    -2px 2px 0 #111,
    0 3px 0 #111;
}

.order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--purple);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.95rem 2.2rem;
  border-radius: 14px;
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px var(--ink), 0 8px 0 rgba(0,0,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
  transition: transform 0.12s ease, background 0.12s ease;
}

.order:hover,
.order:focus-visible {
  background: var(--purple-dark);
  color: #fff;
  transform: translateY(-1px);
}

.order:active {
  background: var(--purple-dark);
  transform: translateY(2px);
  box-shadow: 0 0 0 3px var(--ink), 0 4px 0 rgba(0,0,0,0.25);
}

/* Coupons — match the EDDM postcard cards */
.coupons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 1fr;
  align-items: stretch;
  gap: 0.85rem 0.8rem;
  margin: 0.65rem 0 1rem;
  overflow: visible;
}

@media (min-width: 801px) {
  .coupons { padding-left: 5.25rem; }
}

.coupon {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  min-width: 0;
  height: 100%;
  color: inherit;
  text-decoration: none;
  background: transparent;
  border: 0;
  padding: 0;
  min-height: 0;
  transition: transform 0.14s ease;
}

.coupon-card {
  background: var(--cream);
  border: 5px solid var(--black);
  border-radius: 10px;
  box-shadow: 0 7px 0 var(--black), 0 12px 22px rgba(0,0,0,0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  transition: box-shadow 0.14s ease;
}

.coupon-hd {
  background: var(--orange);
  color: #fff;
  padding: 0.5rem 6rem 0.55rem 0.62rem;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.2rem;
  flex: 1 1 auto;
}

.coupon h2 {
  font-family: "Luckiest Guy", "Barlow Condensed", Lato, sans-serif;
  font-weight: 400;
  font-size: 1.72rem;
  line-height: 0.98;
  letter-spacing: 0.01em;
  margin: 0;
  color: #fff;
  text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  text-wrap: balance;
}

.coupon-desc {
  font-family: "Barlow Condensed", Lato, sans-serif;
  font-weight: 900;
  font-size: 1.76rem;
  line-height: 1.06;
  letter-spacing: 0.02em;
  color: #fff;
  margin: 0;
  padding-right: 0.22rem;
  box-sizing: border-box;
  align-self: flex-start;
  width: calc(100% + 5.45rem);
  max-width: calc(100% + 5.45rem);
  text-shadow: 0 1px 0 rgba(0,0,0,0.35);
  hyphens: none;
  -webkit-hyphens: none;
  overflow-wrap: normal;
  word-break: normal;
}

.coupon-body {
  flex: 0 0 0.38rem;
  min-height: 0.38rem;
  background: var(--cream);
}

.coupon-ft {
  background: var(--orange);
  color: #fff;
  text-align: center;
  padding: 0.46rem 0.4rem 0.5rem;
  font-family: "Barlow Condensed", Lato, sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0,0,0,0.28);
  transition: background 0.14s ease;
  flex: 0 0 auto;
}

.coupon .price {
  position: absolute;
  top: 0.04rem;
  right: 0.02rem;
  z-index: 12;
  margin: 0;
  font-family: "Luckiest Guy", "Barlow Condensed", Lato, sans-serif;
  font-weight: 400;
  font-size: 3.55rem;
  line-height: 0.8;
  letter-spacing: 0;
  color: var(--cream);
  -webkit-text-stroke: 4.5px #1A1A1A;
  paint-order: stroke fill;
  text-shadow: 3px 3.5px 0 #111, 0 0 8px rgba(0,0,0,0.35);
  transform: rotate(5deg);
  transform-origin: right center;
  pointer-events: none;
  white-space: nowrap;
  transition: transform 0.14s ease;
}

.coupon:hover,
.coupon:focus-visible {
  color: inherit;
  transform: translateY(-4px);
}

.coupon:hover .coupon-card,
.coupon:focus-visible .coupon-card {
  box-shadow: 0 10px 0 var(--black), 0 18px 28px rgba(0,0,0,0.26);
}

.coupon:hover .coupon-ft,
.coupon:focus-visible .coupon-ft {
  background: var(--purple);
}

.coupon:hover .price,
.coupon:focus-visible .price {
  transform: rotate(5deg) scale(1.07);
}

.coupon:active {
  transform: translateY(3px);
}

.coupon:active .coupon-card {
  box-shadow: 0 2px 0 var(--black), 0 6px 14px rgba(0,0,0,0.2);
}

.coupon:active .coupon-ft {
  background: var(--purple-dark);
}

.coupon:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 4px;
}

/* Stores */
.stores {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.55rem;
  background: rgba(255, 253, 248, 0.94);
  border-radius: 14px;
  padding: 0.85rem 0.75rem 0.9rem;
  box-shadow: 0 8px 22px rgba(0,0,0,0.14);
  margin-top: auto;
}

.store {
  text-align: left;
  padding: 0 0.4rem;
}

.store + .store {
  border-left: 1px solid rgba(0,0,0,0.1);
}

.store h3 {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}

.store p {
  margin: 0;
  font-size: 0.74rem;
  line-height: 1.3;
  color: #333;
}

.store a {
  display: inline-block;
  margin-top: 0.2rem;
  color: var(--blue);
  font-weight: 900;
  font-size: 0.82rem;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.store a:hover,
.store a:focus-visible {
  text-decoration: underline;
}

/* Footer */
.site-footer {
  text-align: center;
  font-size: 0.72rem;
  color: #1a1a1a;
  margin: 0.7rem auto 0.15rem;
  align-self: center;
  background: rgba(255, 253, 248, 0.94);
  padding: 0.22rem 0.8rem;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.site-footer p { margin: 0; }

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

@media (max-width: 800px) {
  .bg {
    background-image: url("../img/bg-mobile.webp");
    background-position: center top;
  }

  .page {
    min-height: 100vh;
    min-height: 100dvh;
    padding: 0.7rem 0.9rem 0.45rem;
  }

  .hero { padding: 0.3rem 0 0.45rem; }
  .hero img { width: min(250px, 70vw); }
  .tagline { margin: 0.45rem 0 0.8rem; font-size: clamp(1.45rem, 7vw, 1.85rem); }
  .order { padding: 0.75rem 1.7rem; font-size: 1.1rem; }

  /* Pin coupons + stores to the bottom so faces stay visible in the middle */
  .coupons {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    margin-top: auto;
    margin-bottom: 0.45rem;
    gap: 0.5rem 0.6rem;
  }

  .coupon-hd {
    padding: 0.35rem 4.55rem 0.38rem 0.45rem;
  }

  .coupon h2 { font-size: 1.52rem; line-height: 0.96; }
  .coupon-desc { font-size: 1.52rem; line-height: 1.06; margin: 0; padding-right: 0.18rem; width: calc(100% + 4.2rem); max-width: calc(100% + 4.2rem); }
  .coupon-body {
    flex: 0 0 0.22rem;
    min-height: 0.22rem;
  }
  .coupon-ft {
    padding: 0.26rem 0.22rem 0.28rem;
    font-size: 1.22rem;
    letter-spacing: 0.08em;
  }
  .coupon .price {
    font-size: 2.7rem;
    -webkit-text-stroke: 3.5px #1A1A1A;
    right: 0;
    top: 0.02rem;
    text-shadow: 2px 2.5px 0 #111, 0 0 6px rgba(0,0,0,0.35);
  }

  .stores {
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem 0.3rem;
    padding: 0.5rem 0.55rem 0.45rem;
    margin-top: 0;
  }

  .store + .store { border-left: 0; }

  .store:nth-child(even) {
    border-left: 1px solid rgba(0,0,0,0.1);
  }

  .store h3 { font-size: 0.7rem; margin: 0 0 0.1rem; }
  .store p { font-size: 0.68rem; }
  .store a { font-size: 0.75rem; margin-top: 0.08rem; }

  .site-footer { margin: 0.45rem auto 0.05rem; }
}

@media (prefers-reduced-motion: reduce) {
  .order, .coupon, .coupon-card, .coupon-ft, .coupon .price { transition: none; }
}
