/* amitch.design — contact page (Amit's approved draft, Nov 17 2026).
   Uses the site's shell (header, footer, phone menu) from styles.css + shell.css; this file only
   turns the full-screen home layout into a scrolling page and styles the form. */

.is-contact { overflow: auto; height: auto; }
html:has(body.is-contact) { height: auto; }
.is-contact .page { height: auto; min-height: 100vh; min-height: 100svh; overflow: visible; display: flex; flex-direction: column; }
.is-contact .header { position: relative; inset: auto; }
.is-contact .footer { position: relative; inset: auto; padding: 0 var(--pad) calc(.85 * var(--u)); margin-top: auto; }
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

.contact {
  --dim: color-mix(in srgb, var(--fg) 45%, transparent);
  --line: color-mix(in srgb, var(--fg) 22%, transparent);
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 6vw;
  align-items: start;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: max(6vh, 48px) var(--pad) max(8vh, 56px);
}
.contact__title {
  margin: 0;
  font-size: clamp(56px, 8.4vw, 132px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: .9;
}
.contact__lead {
  margin: 28px 0 0;
  max-width: 420px;
  font-size: 23.5px;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.contact__direct { margin: 40px 0 0; font-size: 16px; font-weight: 600; letter-spacing: -0.045em; line-height: 1.6; }
.contact__direct a:hover { text-decoration: underline; text-underline-offset: 3px; }
.cf-lbl, .contact__direct span {
  display: block;
  font-family: var(--font-label);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--dim);
}

.cf { display: grid; gap: 34px; padding-top: 8px; }
.cf[hidden] { display: none; }
.cf-field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cf-field legend { padding: 0; margin-bottom: 8px; }
.cf-field input, .cf-field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--line);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.05em;
  padding: 4px 0 10px;
  outline: none;
  transition: border-color .2s ease;
}
.cf-field input::placeholder, .cf-field textarea::placeholder { color: color-mix(in srgb, var(--fg) 25%, transparent); }
.cf-field input:focus, .cf-field textarea:focus { border-bottom-color: var(--fg); }
.cf-field input[aria-invalid="true"] { border-bottom-color: #FF5A4E; }
.cf-field textarea { resize: none; min-height: 84px; line-height: 1.15; }
.cf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }

.cf-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-tags input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.cf-tags label {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.05em;
  padding: 7px 16px 9px;
  border: 2px solid var(--line);
  border-radius: 99px;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.cf-tags label:hover { border-color: var(--fg); }
.cf-tags input:checked + label { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cf-tags input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 3px; }

.cf-send { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; }
.cf-send small { font-family: var(--font-label); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; color: var(--dim); max-width: 240px; line-height: 1.4; }
.cf-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--fg);
  font: inherit;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.cf-btn:hover, .cf-btn:focus-visible { text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 3px; outline: none; }
.cf.is-sending .cf-btn { opacity: .4; cursor: progress; text-decoration: none; }
.cf-error { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -0.04em; color: #FF7A70; }
.cf-error a { text-decoration: underline; }

.cf-done:focus { outline: none; }
.cf-done h2 { margin: 0; font-size: clamp(44px, 6vw, 96px); font-weight: 600; letter-spacing: -0.065em; line-height: .92; }
.cf-done p { margin: 20px 0 0; font-size: 23.5px; font-weight: 600; letter-spacing: -0.045em; color: var(--dim); }

@media (max-width: 820px) {
  .contact { grid-template-columns: 1fr; gap: 48px; padding-top: 40px; }
  .cf-pair { grid-template-columns: 1fr; gap: 34px; }
  .cf-send { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 700px), (max-aspect-ratio: 4/5) {
  .is-contact .footer { padding: 0 16px max(10px, env(safe-area-inset-bottom)); }
  .contact { padding: 32px 16px 56px; }
  .contact__title { font-size: clamp(48px, 15vw, 80px); }
  .contact__lead { font-size: 21px; }
  .cf-field input, .cf-field textarea { font-size: 22px; }
  .cf-tags label { font-size: 18px; }
}
