/* ==========================================================================
   Ilumi — the Contact page (contact.html)
   Loaded after css/styles.css, whose header, tokens and ink button (.url-btn)
   it uses as they are. Everything here is scoped to .contact / .contact-*, so
   nothing on the other pages changes. The ground is the questions section's
   paper and the card is the waitlist's white paper card, grown into a form.
   The spec is in README.md, "The Contact page".
   ========================================================================== */

.contact-page {
  background: #fbf6f0; /* one sheet of the questions section's paper */
  background-image: none;
}

.contact {
  --c-text: "Geist", var(--font-sans);
  --c-paper: #fbf6f0;
  --c-ink: #1c1a17;
  --c-muted: rgb(28 26 23 / 0.66);
  --c-line: rgb(28 26 23 / 0.13);
  overflow-x: clip;
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--c-text);
}

/* One window tall, the card and the picture in the middle of it. The top is
   what the header's pill takes. */
.contact-inner {
  display: grid;
  align-items: center;
  gap: 40px;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  max-width: 1312px;
  padding: 104px 20px 48px;
}
@media (min-width: 640px) { .contact-inner { padding: 112px 40px 56px; } }
@media (min-width: 960px) {
  .contact-inner { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: clamp(40px, 5vw, 88px); }
}

/* ---------- The card ---------- */
.contact-card, .contact-done {
  border: 1px solid #fff;
  background: linear-gradient(180deg, #fff 0%, #fffdf9 100%);
  box-shadow: 0 0 0 1px rgb(60 50 30 / 0.07), 0 1px 2px rgb(60 50 30 / 0.06), 0 10px 22px -10px rgb(60 50 30 / 0.16), 0 28px 60px -24px rgb(60 50 30 / 0.34);
}
.contact-card { position: relative; border-radius: 28px; padding: 32px 24px 24px; }
@media (min-width: 640px) { .contact-card { padding: 44px 44px 36px; } }

.contact-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--c-muted); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-eyebrow-mark, .contact-done-mark { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: rgb(233 182 56 / 0.2); box-shadow: inset 0 0 0 1px rgb(233 182 56 / 0.5); }
.contact-eyebrow-mark svg, .contact-done-mark svg { width: 9px; height: 12px; fill: var(--color-gold); }
.contact-title { font-family: var(--font-serif); font-weight: 500; font-size: clamp(38px, 4.2vw, 56px); line-height: 1.04; letter-spacing: -0.025em; }
.contact-lede { margin-top: 14px; color: rgb(28 26 23 / 0.75); font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; text-wrap: pretty; }

/* ---------- The form ---------- */
.contact-form { display: grid; gap: 14px; margin-top: 30px; }
.contact-row { display: grid; gap: 14px; }
@media (min-width: 520px) { .contact-row { grid-template-columns: 1fr 1fr; } }
.contact-field { display: grid; gap: 7px; }
.contact-label { color: var(--c-muted); font-size: 13.5px; font-weight: 500; }
.contact-input {
  width: 100%;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--c-line);
  border-radius: 14px;
  background: #fffefb;
  color: var(--c-ink);
  font-family: inherit;
  font-size: 16px; /* 16px, so an iPhone does not zoom in on it */
  letter-spacing: -0.011em;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.contact-message { height: auto; min-height: 136px; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.contact-input::placeholder { color: rgb(28 26 23 / 0.36); }
.contact-input::selection { background: #e9b63840; }
.contact-input:focus { border-color: rgb(233 182 56 / 0.8); box-shadow: 0 0 0 4px rgb(233 182 56 / 0.2); }
.contact-input:-webkit-autofill { -webkit-text-fill-color: var(--c-ink); box-shadow: inset 0 0 0 100px #fffefb; }
.contact-field.is-error .contact-input { border-color: #c9543f; animation: url-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

.contact-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.contact-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 6px; }
.contact-status { flex: 1 1 200px; color: var(--c-muted); font-size: 13.5px; line-height: 1.45; }
.contact-status.is-alert { color: #a8432f; }
.contact-go:focus-visible { box-shadow: 0 2px 8px rgba(26, 26, 26, 0.18), 0 0 0 4px rgba(233, 182, 56, 0.45); }
.contact-go[disabled] { transform: none; filter: none; opacity: 0.72; cursor: default; }
@media (max-width: 519px) { .contact-go { width: 100%; } }

/* ---------- Sent ---------- */
.contact-done { display: flex; align-items: flex-start; gap: 14px; margin-top: 30px; padding: 20px 22px; border-radius: 20px; outline: none; }
.contact-done[hidden] { display: none; }
.contact-done p { font-size: 15.5px; line-height: 1.5; }
.contact-done strong { display: block; font-weight: 600; }
.contact-done span { color: var(--c-muted); }
.contact-done b { color: var(--c-ink); font-weight: 500; }

/* ---------- The picture ----------
   On white, laid on the paper by multiply (as the waitlist's is), so nothing
   between it and .contact may make a stacking context: no transform, opacity,
   filter or z-index on .contact-art or its image. */
.contact-art { margin: 0; justify-self: center; width: 100%; max-width: 720px; }
.contact-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; user-select: none; -webkit-user-drag: none; }
@media (max-width: 959px) { .contact-art { max-width: 560px; } }
