/* ----------  Fonts  ---------- */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("assets/fonts/BricolageGrotesque-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cooper Nouveau";
  src: url("assets/fonts/CooperNouveau.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ----------  Tokens  ---------- */
:root {
  --bg: #ECEBDF;
  --red: #660000;
  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --script: "Cooper Nouveau", "Bricolage Grotesque", serif;
}

/* ----------  Reset  ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }

html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--red);
  font-family: var(--display);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--red); color: var(--bg); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); border: 0;
}

/* ----------  Screen shell  ---------- */
.screen {
  height: 100svh;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 38px) clamp(24px, 2.5vw, 36px) clamp(28px, 3.4vw, 50px);
  gap: clamp(16px, 2vw, 28px);
}

/* ----------  Wordmark  ---------- */
.wordmark {
  display: block;
  width: 100%;
  color: var(--red);
  flex: 0 0 auto;
}
.wordmark svg {
  width: 100%;
  height: auto;
}

/* ----------  Bag stage  ---------- */
.stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.bag {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--bg);
}

/* ----------  Footer  ---------- */
.footer {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

/* homegrown IN Aotearoa */
.homegrown {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.01;
  white-space: nowrap;
}
.homegrown .script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.58em;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Signup block (right) */
.signup {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 446px;
}
.signup__heading {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.07;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--red);
  max-width: 353px;
}

/* Joined input + button pill */
.signup__form {
  display: flex;
  align-items: stretch;
  width: 446px;
  max-width: 100%;
}
.signup__form[hidden] { display: none; }
.signup__form input {
  flex: 1 1 50%;
  min-width: 0;
  height: 52px;
  background: transparent;
  border: 2px solid var(--red);
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding: 0 18px;
  font-family: var(--display);
  font-weight: 400;
  font-size: 16px;
  color: var(--red);
  outline: none;
}
.signup__form input::placeholder { color: var(--red); opacity: 1; }
.signup__form button {
  flex: 1 1 50%;
  height: 52px;
  background: var(--red);
  border: 2px solid var(--red);
  border-radius: 0 8px 8px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--bg);
  cursor: pointer;
  transition: filter 0.15s ease;
}
.signup__form button:hover { filter: brightness(1.25); }
.signup__success {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--red);
}

/* ----------  Mobile  ---------- */
@media (max-width: 760px) {
  .screen {
    padding: 28px 24px 34px;
    gap: 18px;
  }
  .drumstick { display: none; }
  .bag { transform: scale(1.25); transform-origin: center; }

  .footer {
    flex-direction: column-reverse;
    align-items: center;
    gap: 26px;
  }
  .homegrown {
    font-size: 11px;
    letter-spacing: 0.07em;
  }
  .signup {
    align-items: center;
    width: 100%;
  }
  .signup__heading {
    font-size: clamp(18px, 5.4vw, 21px);
    text-align: center;
    letter-spacing: 0.085em;
    max-width: 280px;
  }
  .signup__form {
    width: 100%;
    max-width: 342px;
  }
  .signup__form input {
    height: 44px;
    font-size: 13px;
    border-width: 1.6px;
    border-right: 0;
    border-radius: 6px 0 0 6px;
  }
  .signup__form button {
    height: 44px;
    font-size: 14px;
    border-width: 1.6px;
    border-radius: 0 6px 6px 0;
  }
}

/* Tall/large screens: keep the bag from getting too huge */
@media (min-width: 761px) {
  .stage { padding: clamp(8px, 2vw, 28px) 0; }
}

/* ----------  Custom chicken-wing cursor (desktop / pointer devices)  ---------- */
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  body {
    cursor: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='40'%20height='40'%20viewBox='0 0 40 40'%3E%3Ctext%20x='2'%20y='32'%20font-size='32'%3E%F0%9F%8D%97%3C/text%3E%3C/svg%3E") 14 22, auto;
  }
  .wordmark,
  .signup__form input,
  .signup__form button {
    cursor: inherit;
  }
}
