/* Reset and the contact dialog.
   The page themes the dialog through the --cp-* custom properties. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus, #ff7119); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Contact dialog ---------- */
.cp {
  --_bg: var(--cp-bg, #fff);
  --_fg: var(--cp-fg, #071c38);
  --_muted: var(--cp-muted, #5b6778);
  --_accent: var(--cp-accent, #ff7119);
  --_accent-fg: var(--cp-accent-fg, #071c38);
  --_line: var(--cp-line, rgba(7, 28, 56, .12));
  --_radius: var(--cp-radius, 20px);
  --_btn-radius: var(--cp-btn-radius, 999px);
  --_font: var(--cp-font, system-ui, sans-serif);
  --_head: var(--cp-head-font, var(--_font));

  width: min(440px, calc(100vw - 32px));
  margin: auto;
  padding: 0;
  border: 1px solid var(--_line);
  border-radius: var(--_radius);
  background: var(--_bg);
  color: var(--_fg);
  font-family: var(--_font);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45);
}
.cp::backdrop { background: rgba(3, 10, 22, .6); backdrop-filter: blur(4px); }
.cp[open] { animation: cp-in .22s ease-out; }
@keyframes cp-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }

.cp__inner { padding: 28px 24px 24px; }
.cp__close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--_muted); cursor: pointer; font-size: 22px; line-height: 1;
}
.cp__close:hover { background: var(--_line); color: var(--_fg); }
.cp__eyebrow { margin: 0 0 6px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--_muted); }
.cp__title { margin: 0 0 6px; font-family: var(--_head); font-size: 26px; line-height: 1.15; }
.cp__lede { margin: 0 0 20px; color: var(--_muted); font-size: 15px; line-height: 1.5; }

.cp__actions { display: grid; gap: 10px; }
.cp__row { display: flex; gap: 8px; align-items: stretch; }
.cp__action {
  flex: 1; display: flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 10px 18px;
  border-radius: var(--_btn-radius);
  text-decoration: none; font-weight: 600;
  transition: transform .15s ease, filter .15s ease;
}
.cp__action:hover { transform: translateY(-1px); filter: brightness(1.05); }
.cp__action--primary { background: var(--_accent); color: var(--_accent-fg); }
.cp__action--secondary { border: 1.5px solid var(--_line); color: var(--_fg); }
.cp__action svg { width: 22px; height: 22px; flex: none; }
.cp__action span { display: grid; line-height: 1.2; min-width: 0; }
.cp__action small { font-weight: 400; font-size: 13px; opacity: .8; overflow-wrap: anywhere; }
.cp__copy {
  flex: none; width: 60px; border: 1.5px solid var(--_line); border-radius: var(--_btn-radius);
  background: transparent; cursor: pointer; font-size: 12px; color: var(--_muted);
}
.cp__copy:hover { color: var(--_fg); border-color: var(--_fg); }
.cp__copy[data-copied] { color: var(--_fg); }
.cp__foot { margin: 16px 0 0; font-size: 13px; color: var(--_muted); text-align: center; }
.cp__foot a { color: var(--_fg); }

