/* Homepage refinements only. Shared shop and checkout styles stay in baked.css. */
.home-page {
  --vintage-red: #863c38;
  --polaroid-paper: #fffaf0;
}

.home-page .hero-copy h1 {
  font-size: clamp(48px, 5.2vw, 74px);
  line-height: 1.06;
  letter-spacing: -2.5px;
  white-space: normal;
}

.home-page .headline-homemade {
  color: var(--vintage-red);
}

.home-page .hero-tagline {
  max-width: 480px;
  font-family: var(--hand);
  font-size: 31px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: 20px;
}

.home-page .ink-underline {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.home-page .ink-underline::after {
  content: "";
  position: absolute;
  left: 2px;
  right: -3px;
  bottom: -3px;
  height: 5px;
  border-bottom: 2px solid var(--vintage-red);
  border-radius: 0 0 46% 61%;
  transform: rotate(-1.5deg);
}

.home-page .hero-description {
  max-width: 440px;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 28px;
}

.home-page .hero-links {
  gap: 18px 24px;
}

.home-page .hero-links .cookie-box-button {
  position: relative;
  min-height: 74px;
  padding: 17px 25px;
  gap: 22px;
  border: 2px solid #2e3c2b;
  border-radius: 12px 16px 13px 15px;
  background: var(--butter) var(--grain);
  color: #303922;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: inset 0 0 0 2px #fff7dc, 0 6px 0 #3b4934, 0 10px 13px #30392221;
  transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.home-page .cookie-box-button > span[aria-hidden] {
  flex: 0 0 auto;
  font-size: 28px;
}

@media (hover: hover) {
  .home-page .hero-links .cookie-box-button:hover {
    background-color: #efdfa9;
    transform: translateY(-2px);
    box-shadow: inset 0 0 0 2px #fff7dc, 0 8px 0 #3b4934, 0 12px 15px #30392224;
  }
}

.home-page .hero-links .cookie-box-button:active {
  transform: translateY(4px);
  box-shadow: inset 0 0 0 2px #fff7dc, 0 2px 0 #3b4934, 0 4px 6px #3039221c;
}

.home-page .hero-links .cookie-box-button:focus-visible {
  outline: 3px solid #303922;
  outline-offset: 5px;
}

/* Instant-photo prints: square photographs and a generous handwritten margin. */
.home-page .polaroid {
  padding: 13px 13px 0;
  border: 1px solid #cfc3ab;
  border-radius: 2px 3px 2px 1px;
  background: var(--polaroid-paper) var(--grain);
  box-shadow: 1px 2px 0 #e3d9c1, 3px 8px 14px #49392e1c;
}

.home-page .polaroid img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0;
  filter: sepia(.1) saturate(.88) contrast(.98);
}

.home-page .polaroid figcaption {
  position: static;
  display: block;
  min-height: 69px;
  padding: 17px 8px 22px;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--vintage-red);
  text-align: center;
  font-size: 28px;
  line-height: 1.15;
  box-shadow: none;
  transform: rotate(-1deg);
}

.home-page .hero-photo-frame {
  transform: rotate(2deg);
}

.home-page .hero-photo-frame img {
  object-position: 49% 76%;
}

.home-page .hero-photo-frame figcaption {
  padding-left: 43%;
  padding-block: 17px 21px;
  font-size: 27px;
}

.home-page .hero-photo-inset {
  width: 245px;
  max-width: 46%;
  padding: 9px 9px 0;
  transform: rotate(-6deg);
}

.home-page .hero-photo-inset figcaption {
  min-height: 60px;
  padding: 14px 0 18px;
  font-size: 24px;
}

.home-page .tea-towel {
  background-image: linear-gradient(90deg, #863c3859 50%, transparent 50%), linear-gradient(#863c3859 50%, transparent 50%), var(--grain);
}

/* The menu photographs sit as individual prints above the cookie descriptions. */
.home-page .product-card {
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
  transform: none;
}

.home-page .product-grid {
  gap: 27px;
}

.home-page .product-photo {
  transform: rotate(-1.4deg);
}

.home-page .product-card:nth-child(2) .product-photo {
  transform: rotate(1deg);
}

.home-page .product-card:nth-child(3) .product-photo {
  transform: rotate(-.6deg);
}

.home-page .product-copy {
  padding-top: 27px;
}

.home-page .product-link > span,
.home-page .gift-tag {
  color: var(--vintage-red);
}

.home-page .story-photo figcaption {
  padding-block: 20px 25px;
}

.home-page .ruled-heading > span {
  height: 4px;
  background: none;
  border-bottom: 1px solid #8e7c59;
  border-radius: 0 0 55% 37%;
  transform: rotate(-.8deg);
}

.home-page .ruled-heading > span:last-child {
  transform: rotate(.5deg);
  border-radius: 0 0 33% 58%;
}

.home-page .story-copy > p:not([class]) {
  max-width: 445px;
  font-size: 14px;
  line-height: 1.9;
}

.home-page .gift-tag {
  position: relative;
  display: table;
  margin-top: 27px;
  padding: 16px 24px 17px 42px;
  background: var(--paper) var(--grain);
  border: 1px solid #9b9478;
  border-radius: 18px 3px 5px 18px;
  color: var(--vintage-red);
  font-size: 27px;
  line-height: 1.15;
  transform: rotate(-2deg);
  box-shadow: 1px 3px 0 #40513e13;
}

.home-page .gift-tag::before {
  content: "";
  position: absolute;
  top: calc(50% - 5px);
  left: 15px;
  width: 9px;
  height: 9px;
  border: 1px solid #9b9478;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: inset 1px 1px 1px #40513e1a;
}

.home-page .story-copy .text-link {
  margin-top: 23px;
}

@media (max-width: 1150px) {
  .home-page .hero-copy h1 { font-size: 5.3vw; letter-spacing: -2px; }
  .home-page .hero-tagline { font-size: 28px; }
  .home-page .hero-description { font-size: 14px; }
  .home-page .hero-links .cookie-box-button { font-size: 22px; padding-inline: 21px; }
  .home-page .hero-links { align-items: flex-start; flex-direction: column; gap: 13px; }
  .home-page .hero-photo-inset { width: 205px; }
  .home-page .hero-photo-inset figcaption { font-size: 22px; }
}

@media (max-width: 900px) {
  .home-page .hero-copy h1 { font-size: clamp(35px, 5.3vw, 48px); letter-spacing: -1.7px; }
  .home-page .hero-tagline { font-size: 26px; }
  .home-page .hero-description { font-size: 13px; }
  .home-page .hero-links .cookie-box-button { font-size: 20px; padding-inline: 16px; gap: 12px; min-height: 70px; }
  .home-page .cookie-box-button > span[aria-hidden] { font-size: 25px; }
  .home-page .polaroid { padding: 10px 10px 0; }
  .home-page .polaroid figcaption { font-size: 24px; min-height: 60px; padding-block: 15px 18px; }
  .home-page .hero-photo-frame figcaption { padding-left: 43%; }
  .home-page .hero-photo-inset { max-width: 48%; padding: 7px 7px 0; }
  .home-page .hero-photo-inset figcaption { font-size: 21px; min-height: 56px; }
  .home-page .product-grid { gap: 20px; }
  .home-page .gift-tag { font-size: 25px; padding-right: 19px; }
  .home-page .story-copy > p:not([class]) { font-size: 13px; }
}

@media (max-width: 650px) {
  .home-page .hero-copy h1 { font-size: clamp(37px, 10.2vw, 62px); letter-spacing: -1.2px; line-height: 1.08; }
  .home-page .hero-tagline { font-size: 28px; margin-bottom: 20px; }
  .home-page .hero-description { font-size: 14px; margin-bottom: 24px; }
  .home-page .hero-links { align-items: stretch; gap: 17px; }
  .home-page .hero-links .cookie-box-button { width: 100%; max-width: 390px; font-size: 20px; min-height: 70px; padding: 17px 18px; gap: 16px; }
  .home-page .hero-links .text-link { align-self: flex-start; font-size: 12px; min-height: 36px; }
  .home-page .hero-prices { margin-top: 13px !important; }
  .home-page .hero-art { margin-top: 14px; padding-bottom: 36px; }
  .home-page .hero-photo-frame img { object-position: 52% 76%; }
  .home-page .hero-photo-frame figcaption { font-size: 23px; padding-left: 43%; }
  .home-page .hero-photo-inset { width: 178px; max-width: 51%; bottom: -1px; }
  .home-page .hero-photo-inset figcaption { font-size: 21px; padding-block: 12px 16px; }
  .home-page .product-grid { gap: 29px; }
  .home-page .product-photo { padding: 12px 12px 0; }
  .home-page .product-photo figcaption { min-height: 69px; padding-block: 17px 22px; font-size: 28px; }
  .home-page .story-photo figcaption { padding-block: 17px 22px; font-size: 26px; }
  .home-page .gift-tag { font-size: 27px; max-width: calc(100% - 6px); }
  .home-page .story-copy > p:not([class]) { max-width: none; font-size: 14px; }
}

@media (max-width: 360px) {
  .home-page .hero-tagline { font-size: 26px; }
  .home-page .hero-links .cookie-box-button { font-size: 19px; padding-inline: 12px; gap: 10px; }
  .home-page .hero-photo-frame figcaption { font-size: 21px; padding-block: 15px 18px; }
  .home-page .hero-photo-inset { width: 154px; }
  .home-page .hero-photo-inset figcaption { font-size: 19px; }
  .home-page .gift-tag { font-size: 25px; padding-right: 17px; }
}
