/* gregclement.com — Part One opt-in block for subpages (about, essays,
   essay pages, /read, 404). Inherits each page's own palette via its
   --ink / --paper / --orange / --divider variables; the fallbacks are the
   steel subpage values. Behaviour lives in /optin.js. */
.po {
  --po-ink: var(--ink, #14171A);
  --po-paper: var(--paper, #ECEDEA);
  --po-accent: var(--orange, #3F6E92);
  --po-line: var(--divider, #D3D6D2);
  margin: 3.5rem 0 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--po-line);
  border-top: 3px solid var(--po-accent);
  background: rgba(255, 255, 255, 0.35);
  color: var(--po-ink);
  font-family: var(--sans, "Archivo", sans-serif);
}
.po__title { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.2; font-weight: 700; margin: 0 0 0.75rem; letter-spacing: -0.015em; }
.po__copy { margin: 0 0 0.75rem; font-size: 1.05rem; line-height: 1.6; }
.po__promise { margin: 0 0 1.25rem; font-size: 1.05rem; line-height: 1.6; font-weight: 600; }
.po__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.po__field { flex: 1 1 180px; min-width: 0; }
.po__field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.po__field input {
  width: 100%; height: 52px; padding: 0 1rem; font: inherit; font-size: 1rem;
  color: var(--po-ink); background: #fff; border: 1px solid var(--po-line); border-radius: 2px; outline: none;
}
.po__field input:focus { border-color: var(--po-accent); box-shadow: 0 0 0 3px rgba(63, 110, 146, 0.18); }
.po__field input[aria-invalid="true"] { border-color: #A23B26; }
.po__btn {
  flex: 0 0 auto; height: 52px; padding: 0 1.5rem; border: 0; border-radius: 2px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 1rem; color: #fff; background: var(--po-accent);
  transition: filter 0.2s, transform 0.15s;
}
.po__btn:hover { filter: brightness(1.1); }
.po__btn:active { transform: scale(0.98); }
.po__btn:disabled { opacity: 0.65; cursor: default; }
.po__fine { margin: 0.85rem 0 0; font-size: 0.92rem; line-height: 1.5; opacity: 0.75; }
.po .form-error { margin: 0.6rem 0 0; color: #A23B26; font-size: 0.95rem; }
.po .form-error:empty { display: none; }
.po .form-success { display: none; font-size: 1.05rem; line-height: 1.6; }
.po.is-sent .form-body { display: none; }
.po.is-sent .form-success { display: block; }
.po .form-success a { color: var(--po-accent); }
.po--dark { --po-ink: #ECEDEA; background: rgba(255, 255, 255, 0.04); border-color: rgba(236, 237, 234, 0.2); border-top-color: var(--po-accent); }
.po--dark .po__field input { border-color: transparent; color: #14171A; }
@media (max-width: 560px) {
  .po__btn { width: 100%; }
}

.readnext { margin: 2.5rem 0 0; font-size: 1.1rem; font-family: var(--sans, sans-serif); }
.readnext a { color: var(--orange, #3F6E92); font-weight: 700; text-underline-offset: 4px; }
