/* Shared site footer (newsletter, socials, contact). Source of truth for every page; loaded by site-footer.js. */
:root { --paper: #fffcf5; --card: #fffefb; --ink: #201c1a; --muted: #706863; --faint: #938a84; --line: #e2ddd6; }
/* ---------- footer: newsletter, socials, contact ---------- */
footer.site { margin-top: 56px; padding: 36px 0 32px; }
footer.site .shell { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.newsletter { text-align: left; }
.sep {
  margin: 0 0 12px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.sub-form { display: flex; gap: 8px; width: 100%; max-width: 420px; margin: 0; }
.sub-form input[type="email"] {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.95rem;
}
.sub-form input[type="email"]:focus { outline: none; border-color: var(--faint); }
.sub-form button {
  flex: 0 0 auto;
  /* The CTA holds one line at every width: it never wraps and never shrinks. The email input
     is the only element allowed to absorb the space (see .sub-form input flex-basis 0). */
  white-space: nowrap;
  padding: 0 20px;
  border-radius: 999px;
  border: none;
  background: #1d1a19;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: .9rem;
  line-height: inherit;
}
/* H2 hover: gradient-clipped text. --cta-fill is how much of the label (from the right)
   is orange->pink. site-footer.js sets it from the mouse x: left edge = 100%, right
   edge = 10%. The :hover value is the no-JS fallback. Keep every copy in sync. */
@property --cta-fill { syntax: '<percentage>'; inherits: false; initial-value: -14%; }
.sub-form button .tile-title {
  --cta-fill: -14%; /* ramp parked off the left: no hover = solid white */
  display:inline-block; color:transparent;
  -webkit-background-clip:text; background-clip:text;
  background-image:linear-gradient(90deg,#fff 0%,#fff calc(100% - var(--cta-fill) - 14%),#f6b97a calc(100% - var(--cta-fill)),#e86aa6 100%);
  transition:--cta-fill .05s ease;
}
.sub-form button:hover .tile-title { --cta-fill: 62%; }
.sub-form button:active { opacity:.85; }
@media (prefers-reduced-motion:reduce) { .sub-form button .tile-title { transition:none; } }
.sub-form button:disabled { opacity: 0.5; cursor: default; }
.sub-prefs { margin: 14px 0 0; max-width: 420px; text-align: left; }
.sub-confirm { font-size: 0.9rem; font-weight: 600; margin: 0 0 10px; text-align: center; }
.sub-prefs label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  cursor: pointer;
}
.sub-prefs label span { color: var(--muted); font-size: 0.82rem; }
.sub-prefs input[type="checkbox"] { width: 17px; height: 17px; accent-color: #e86aa6; }
.sub-note { font-size: 0.8rem; color: var(--muted); text-align: center; margin: 6px 0 0; min-height: 1em; }
.sub-err { font-size: 0.85rem; color: #c2410c; margin: 10px 0 0; }
.socials { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0; margin: 0; }
.social-group { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; }
.social-group + .social-group { border-left: 1px solid var(--line); }
.social-group .social-label { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.socials a { color: var(--muted); display: inline-flex; }
.socials a:hover { color: var(--ink); }
.foot-row {
  display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 16px;
  color: var(--muted); font-size: .8rem;
}
.foot-row a { color: var(--muted); }
.foot-links { display: inline-flex; align-items: center; gap: 14px; }
.contact-btn {
  display: inline-flex; align-items: center;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink) !important; font-size: .9rem; font-weight: 600; text-decoration: none;
}
.contact-btn:hover { border-color: var(--faint); }
@media (max-width: 980px) {
  footer.site .shell { grid-template-columns: 1fr; justify-items: center; gap: 24px; }
  .newsletter { text-align: center; }
  .sub-form, .sub-prefs { margin: 0 auto; }
  .foot-row { justify-content: center; }
}
@media (max-width: 560px) {
  .socials { flex-direction: column; gap: 12px; }
  .social-group + .social-group { border-left: 0; }
}

/* Narrow phones: the "Stay updated" CTA keeps its line at any cost, so the secondary
   "Contact us" pill drops out of the legal row rather than letting the CTA wrap. */
@media (max-width: 480px) {
  .contact-btn { display: none; }
}

/* the form and the contact row were 8px wider than a 320px phone */
@media (max-width: 400px) {
  .sub-form { max-width: 100%; }
  .sub-form input[type="email"] { padding: 11px 10px; }
  .sub-form button { padding: 0 12px; font-size: .85rem; }
  .foot-row { gap: 10px; }
}
