:root {
  --cream: #fdeac2;
  --cream-text: #fdf0d6;
  --green: #014415;
  --green-ink: #0a451c;
  --orange: #f34b01;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Nunito", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cream); color: var(--green-ink); font-family: var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }

/* Visually hidden, still read by assistive tech */
.vh {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

.poster { width: 100%; max-width: 1024px; margin: 0 auto; background: var(--cream); }
.band { position: relative; }
.how:focus { outline: none; }

/* ============ Poster composition (approved artwork) ============ */
@media (min-width: 720px) {
  .band__art { width: 100%; }
  .m-only { display: none; }

  /* Live copy is read by screen readers; the lettering itself is baked into the artwork */
  .hero__copy, .hero__product, .how__inner, .story__inner, .signoff__inner {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
  }

  /* CTA hit area: x 39–360, y 565–628 on the 1024 × 1536 poster (hero crop starts at y 63) */
  .cta {
    position: absolute;
    left: 3.809%;
    top: 82.03%;
    width: 31.35%;
    height: 10.29%;
    border-radius: 999px;
    color: transparent;
    font-size: 0;
    transition: box-shadow .2s ease, transform .2s ease;
  }
  .cta:hover { box-shadow: 0 6px 18px rgba(10, 69, 28, .28); transform: translateY(-1px); }
  .cta:focus-visible { outline: 4px solid var(--green-ink); outline-offset: 4px; }
  @media (prefers-reduced-motion: reduce) { .cta, .cta:hover { transition: none; transform: none; } }
}

/* ============ Phone arrangement ============ */
@media (max-width: 719.98px) {
  .band__art { display: none; }

  .masthead { padding: 14px 16px 10px; }
  .masthead__art { width: min(100%, 340px); }
  .masthead::after { content: ""; display: block; height: 2px; margin-top: 8px; background: var(--green); opacity: .8; }

  .hero { display: flex; flex-direction: column; }
  .hero__copy { padding: 20px 16px 0; }
  .hero__title {
    font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
    font-size: clamp(3.25rem, 17vw, 6rem); line-height: .86; letter-spacing: -0.01em; color: var(--green-ink);
  }
  .hero__sub { margin-top: 14px; font-size: 1.125rem; line-height: 1.3; color: var(--green-ink); }
  .hero__sub strong { display: inline-block; margin-top: 4px; font-size: 1.6rem; font-weight: 800; }
  .cta {
    align-self: flex-start; margin: 20px 16px 24px;
    display: inline-flex; align-items: center; gap: .4em; min-height: 52px; padding: 8px 26px;
    border-radius: 999px; background: var(--orange); color: var(--cream-text); text-decoration: none;
    font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1.6rem; text-transform: uppercase;
    -webkit-tap-highlight-color: transparent;
  }
  .cta:active { filter: brightness(.92); }
  .cta:focus-visible { outline: 3px solid var(--green-ink); outline-offset: 3px; }
  .hero__product { width: 100%; }

  .how { background: var(--green); color: var(--cream-text); padding: 32px 16px 36px; scroll-margin-top: 0; }
  .how__title img { width: 170px; }
  .steps { margin-top: 20px; display: grid; gap: 16px; }
  .step { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 16px; }
  .step img { width: 112px; height: 100px; object-fit: contain; object-position: left center; }
  .step__cap { font-family: var(--display); font-style: italic; font-weight: 800; font-size: 1.6rem; line-height: 1.1; }

  .story { padding: 32px 16px 36px; }
  .story__title img { width: 100%; }
  .panels { margin-top: 24px; display: grid; gap: 28px; }
  .panel img { width: 100%; }
  .panel figcaption {
    margin-top: 10px; font-family: var(--display); font-style: italic; font-weight: 800;
    font-size: 1.375rem; line-height: 1.2; color: var(--green-ink); text-align: center;
  }

  .signoff { background: var(--orange); color: var(--cream-text); padding: 28px 16px 30px; text-align: center; }
  .signoff__title img { width: 100%; }
  .signoff__line {
    margin-top: 16px; display: flex; align-items: center; gap: 12px;
    font-family: var(--body); font-weight: 800; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  }
  .signoff__line::before, .signoff__line::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .8; }
}

/* Two-up panels on larger phones / small tablets */
@media (min-width: 520px) and (max-width: 719.98px) {
  .panels { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .step img { object-position: center; }
}

/* Feather the edges of artwork crops so they sit seamlessly on flat section colour */
@media (max-width: 719.98px) {
  .how__title img, .step img, .story__title img, .signoff__title img, .masthead__art {
    -webkit-mask-image:
      linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent),
      linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to right, transparent, #000 10px, #000 calc(100% - 10px), transparent),
      linear-gradient(to bottom, transparent, #000 10px, #000 calc(100% - 10px), transparent);
    mask-composite: intersect;
  }
  .masthead__art { -webkit-mask-image: none; mask-image: none; }
}
@media (max-width: 359.98px) {
  .signoff__line { justify-content: center; letter-spacing: .05em; }
  .signoff__line::before, .signoff__line::after { display: none; }
}
