/* Omelette Studio — shared brief-page styles (single source).
   Linked by pre-call-brief and pre-kickoff-brief BEFORE their local
   <style>, so a form can still override locally where it legitimately
   differs (e.g. sticky header, textarea min-height). These rules were
   byte-identical across both forms — defining them once here removes the
   structural duplication so the two can't drift. Colors/fonts/spacing
   come from tokens.css (must be linked first). The main site does NOT
   link this file. */

/* ─── Foundation ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: var(--text-body); scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--color-white);
  color: var(--color-near-black);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--color-coral); color: var(--color-white); }

/* ─── Wordmark (header logo link) ────────────────────── */
.wordmark-link { display: inline-flex; align-items: center; }
.wordmark-link img { height: 24px; width: auto; display: block; transition: opacity 200ms ease; }
@media (hover: hover) {
  .wordmark-link:hover img { opacity: 0.7; }
}

/* ─── Field system ───────────────────────────────────── */
.field { margin-bottom: var(--space-32); scroll-margin-top: var(--space-96); }

.field-label {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--color-near-black);
  margin-bottom: var(--space-6);
  line-height: 1.4;
}
.field-required {
  font-size: var(--text-micro);
  font-weight: 400;
  color: var(--color-coral);
  margin-left: var(--space-6);
  letter-spacing: 0;
}
.field-hint {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--color-dark-grey);
  margin-bottom: var(--space-8);
  line-height: 1.5;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--text-body-sm);
  color: var(--color-near-black);
  background: var(--color-white);
  border: 1px solid var(--color-mid-grey);
  border-radius: var(--radius-lg);
  padding: var(--space-12) var(--space-16);
  outline: none;
  transition: border-color 150ms ease;
  -webkit-appearance: none;
  appearance: none;
  line-height: 1.5;
}
.field input:focus,
.field textarea:focus { border-color: var(--color-near-black); }
.field input::placeholder,
.field textarea::placeholder { color: var(--color-mid-grey); }
.field textarea { resize: vertical; }   /* per-form min-height stays local */
.field textarea.tall { min-height: 140px; }

/* ─── Pill / section tag (label above a headline) ────── */
.pill {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--color-mid-grey);
  border-radius: var(--radius-full);
  padding: var(--space-6) var(--space-16);
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--color-near-black);
  margin-bottom: var(--space-16);
}

/* ─── Buttons (pill-shaped). Add .tilt to mark JS pointer-tilt targets;
   the .tilt class itself carries no style. Filled = .btn-primary,
   outline = .btn-ghost. ──────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  font-weight: 500;
  padding: var(--space-12) var(--space-28);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  /* Transform animated by JS pointer-tilt; only animate background/border here. */
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
  outline: none;
  letter-spacing: 0;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:focus-visible {
  outline: 2px solid var(--color-near-black);
  outline-offset: 3px;
}
.btn-primary { background: var(--color-black); color: var(--color-white); }
.btn-ghost { background: transparent; color: var(--color-near-black); border: 1px solid var(--color-mid-grey); }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) { background: var(--color-near-black); }
  .btn-ghost:hover:not(:disabled) { border-color: var(--color-near-black); }
}
/* Arrow nudges toward its direction on hover. Forward (primary) drifts
   right, back (ghost) drifts left. */
.btn svg { transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (hover: hover) {
  .btn-primary:hover:not(:disabled) svg { transform: translateX(3px); }
  .btn-ghost:hover:not(:disabled) svg { transform: translateX(-3px); }
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--color-light-grey);
  padding: var(--space-64) var(--space-48) var(--space-24);
}
.site-footer-inner { max-width: 1200px; margin: 0 auto; }
.site-footer-top { margin-bottom: var(--space-56); }
.site-footer-logo { height: 18px; width: auto; display: block; margin-bottom: var(--space-16); }
.site-footer-tagline {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  line-height: 1.6;
  color: var(--color-dark-grey);
  max-width: 260px;
  margin: 0;
}
.site-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  color: var(--color-muted-grey);
  padding-bottom: var(--space-24);
}
.site-footer-link {
  color: inherit;
  text-decoration: none;
  transition: color 200ms ease;
}
@media (hover: hover) {
  .site-footer-link:hover { color: var(--color-coral); }
}
@media (max-width: 768px) {
  .site-footer { padding: var(--space-48) var(--space-20) var(--space-16); }
  .site-footer-top { margin-bottom: var(--space-40); }
  .site-footer-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding-bottom: var(--space-16);
  }
}

/* ─── Send-failure notice (confirmation screen) ─────────────────
   Both briefs submit in the background AFTER the confirmation screen
   swaps in, so a failed POST needs somewhere to surface — it used to
   vanish silently while the client believed the brief was sent.
   Hidden by default ([hidden]); the submit handler reveals it. */
.send-fail {
  max-width: 420px;
  margin: var(--space-32) auto 0;
  padding: var(--space-16) var(--space-20);
  border: 1px solid var(--color-mid-grey);
  border-radius: var(--radius-lg);
  background: var(--color-off-white);
  text-align: center;
}
.send-fail-text {
  font-family: var(--font-sans);
  font-size: var(--text-ui);
  color: var(--color-dark-grey);
  line-height: 1.6;
  margin: 0 0 var(--space-12);
}
.send-fail-text a { color: var(--color-near-black); }
