/* Email sign-up in the footer (20 Nov 2026, Julian: "how can i collect their emails").
   One block for the shop's footer (src/partials/footer.html, on --dark-2) and the four
   support pages' footers (on --dark), loaded by all five pages. Text on those grounds:
   --grey-light 11:1, --grey 4.9:1 or more, --red-text 5:1; the field edge 3.5:1 (1.4.11).
   No light surface here, so forced dark modes have nothing to turn. */
.signup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 34rem);
  align-items: center;
  gap: 1.25rem 3rem;
  margin: 0 auto;
}
footer > .signup {
  max-width: 1300px;
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--dark-4);
}
.page-footer > .signup {
  max-width: 1200px;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--dark-4);
}

.signup .signup-title {
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--white);
}
.signup .signup-lead {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--grey-light);
}

.signup-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.signup-row { display: flex; gap: 0.5rem; }
.signup-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  box-sizing: border-box;
  padding: 0 0.9rem;
  background: var(--black);
  color: var(--white);
  border: 1px solid var(--field-edge);
  border-radius: 0;
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: iOS does not zoom into the field */
}
.signup-input::placeholder { color: var(--grey); opacity: 1; }
.signup-input:focus-visible { outline: 3px solid var(--white); outline-offset: 2px; }
.signup-input[aria-invalid="true"] { border-color: var(--red-text); }
.signup-button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 1.5rem;
  background: var(--red);
  color: var(--white);
  border: 0;
  border-radius: 0;
  font-family: var(--font-condensed, var(--font-display));
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color var(--dur-micro, 0.2s) var(--ease-micro, ease);
}
.signup-button:hover { background: var(--red-dark); }
.signup-button:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.signup-button[aria-disabled="true"] { cursor: progress; }

.signup .signup-msg {
  margin: 0.6rem 0 0;
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--white);
}
.signup .signup-msg:empty { margin: 0; }
.signup .signup-msg[data-state="error"] { color: var(--red-text); }
.signup .signup-consent {
  margin: 0.6rem 0 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--grey);
}
.signup .signup-consent a {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: var(--grey-light);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.signup .signup-consent a:hover { color: var(--white); }
.signup .signup-consent a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }

@media (max-width: 900px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
  footer > .signup { margin-top: 2rem; padding-top: 1.75rem; }
}
@media (max-width: 600px) {
  footer > .signup { margin-top: 1.5rem; padding-top: 1.25rem; gap: 0.9rem; }
  .signup .signup-title { font-size: 1rem; margin-bottom: 0.35rem; }
  .signup .signup-lead { font-size: 0.9rem; }
  .signup-button { padding: 0 1.1rem; letter-spacing: 0.14em; }
}
