/* Margin Insiders — the popup's looks. See site/insiders.js for the rules
 * about when it is allowed to appear, which matter more than any of this.
 *
 * Self-contained on purpose: it is injected into pages whose own stylesheets
 * differ, so every value it needs is here and every selector is prefixed. It
 * borrows Margin's colors by name where the page defines them and falls back
 * to the same values where it does not.
 */
.insBox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(28, 26, 22, 0);
  opacity: 0;
  transition: opacity .22s ease, background .22s ease;
}
.insBox.on { opacity: 1; background: rgba(28, 26, 22, .46); }

.insCard {
  position: relative;
  width: 100%;
  max-width: 470px;
  background: var(--card, #FDFBF5);
  color: var(--ink, #2C2822);
  border-radius: 18px;
  padding: 34px 32px 28px;
  box-shadow: 0 30px 80px rgba(44, 40, 34, .3);
  transform: translateY(10px) scale(.985);
  transition: transform .22s ease;
  text-align: center;
}
.insBox.on .insCard { transform: none; }

.insX {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted, #7A736A);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.insX:hover { background: rgba(44, 40, 34, .07); }

.insKick {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terra, #BC6144);
}
.insCard h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: 29px;
  line-height: 1.15;
  letter-spacing: -.008em;
  margin: 12px 0 0;
  text-wrap: balance;
  color: var(--ink, #2C2822);
}
.insSub {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted, #7A736A);
  text-wrap: pretty;
}

.insForm { margin-top: 20px; }
.insLab {
  display: block;
  text-align: left;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted, #7A736A);
  margin-bottom: 6px;
}
.insForm input#insEmail {
  width: 100%;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;            /* 16px or iOS zooms the page on focus */
  color: var(--ink, #2C2822);
  background: var(--sand, #EFE6D3);
  border: 1px solid rgba(44, 40, 34, .14);
  border-radius: 11px;
}
/* Olive rather than terra. Terra is the error color everywhere else on the
   site, and a box that opens with the field already ringed in it looks like
   you have done something wrong before you have typed anything. */
.insForm input#insEmail:focus {
  outline: 2px solid var(--sage, #5E7150);
  outline-offset: 1px;
}
/* The honeypot. Off-screen rather than display:none, because some bots skip
   anything hidden and fill in everything else. */
.insPot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.insGo {
  width: 100%;
  margin-top: 12px;
  padding: 14px;
  border: 0;
  border-radius: 999px;
  background: var(--terra, #BC6144);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.insGo:hover { filter: brightness(1.06); }
.insGo:disabled { opacity: .6; cursor: default; }

.insMsg { margin: 10px 0 0; font-size: 14px; line-height: 1.5; min-height: 0; }
.insMsg.bad { color: #A2402B; }
.insFine {
  margin: 14px 0 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted, #7A736A);
}

@media (max-width: 430px) {
  .insCard { padding: 30px 22px 24px; border-radius: 16px; }
  .insCard h2 { font-size: 26px; }
}

/* Somebody who has asked their computer to stop moving things gets the box
   without the movement. */
@media (prefers-reduced-motion: reduce) {
  .insBox, .insCard { transition: none; }
  .insCard { transform: none; }
}
