/* contact.css — the /contact/ page only.

   One screen: details on the left, form on the right, both on paper. Nothing
   here is reused elsewhere, so the file stays small deliberately. Buttons,
   .wrap and .hazard-mark come from core.css. */

.ct { padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 9vw, 128px); }

.ct-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: start;
}

/* ── left: the direct routes ───────────────────────────────────────────── */
.ct-aside h1 {
  font-family: var(--f-display);
  font-size: clamp(38px, 4.4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: var(--fw-display);
  margin: 22px 0 0;
}
.ct-sub {
  margin: 18px 0 0;
  max-width: 40ch;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
}

.ct-direct {
  margin-top: 44px;
  border-top: 1px solid var(--ink);
}
.ct-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 110px) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  color: inherit;
  transition: padding-left 0.16s ease;
}
.ct-line:hover { padding-left: 8px; }
.ct-line-ic { color: var(--hazard); display: block; }
.ct-line-k {
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.ct-line-v {
  font-family: var(--f-display);
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  font-weight: 500;
  color: var(--ink);
}

.ct-meta {
  margin: 26px 0 0;
  font-family: var(--f-mono);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-mute);
}
.ct-meta a {
  color: var(--hazard);
  border-bottom: 1px solid color-mix(in oklab, var(--hazard) 45%, transparent);
}

/* ── right: the form ───────────────────────────────────────────────────── */
.ct-form { border-top: 1px solid var(--ink); }

.cf-f { display: block; padding: 16px 0 18px; border-bottom: 1px solid var(--rule); }
.cf-k {
  display: block;
  font-family: var(--f-mono);
  font-size: 13.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.cf-k em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: oklch(0.68 0 0);
}

.cf-f input,
.cf-f select,
.cf-f textarea {
  width: 100%;
  background: transparent;
  border: 0;
  color: var(--ink);
  padding: 2px 0;
  font-family: var(--f-display);
  font-size: 19px;
  letter-spacing: -0.01em;
  outline: none;
}
.cf-f:focus-within { border-bottom-color: var(--hazard); }
.cf-f select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 8px) 11px, calc(100% - 2px) 11px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 22px;
}
.cf-f textarea {
  resize: vertical;
  min-height: 118px;
  font-size: 17.5px;
  line-height: 1.55;
  letter-spacing: 0;
}

.cf-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
}
.cf-foot .btn {
  background: var(--hazard);
  color: var(--hazard-ink);
  border-color: var(--hazard);
}
.cf-note {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
}
.cf-err {
  flex-basis: 100%;
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--bad);
}

/* inline confirmation swapped in by contact-form.js */
.cf-done { padding: 36px 0 0; }
.cf-done h3 {
  font-family: var(--f-display);
  font-size: clamp(23px, 2.3vw, 29px);
  letter-spacing: -0.02em;
  font-weight: 500;
  margin: 16px 0 10px;
}
.cf-done p {
  margin: 0;
  max-width: 46ch;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.cf-done p b { color: var(--ink); font-weight: 600; }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; gap: 52px; }
  .ct-sub { max-width: none; }
}
@media (max-width: 480px) {
  .ct-line { grid-template-columns: 24px minmax(0, 1fr); row-gap: 2px; }
  .ct-line-v { grid-column: 2; }
}
