/* ============================================================================
   Unlock + Contact pages — centered editorial layouts
   ============================================================================ */

.unlock-page,
.contact-page {
  max-width: 560px;
  margin: 64px auto;
  padding: 0 24px;
}

.unlock-card {
  padding: 36px 32px;
  background: var(--bg-1);
  box-shadow: 0 0 0 var(--hairline) var(--border-1), var(--shadow-2);
  border-radius: var(--r-4);
}

.unlock-h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: var(--w-normal);
  color: var(--text-0);
  margin: 8px 0 14px;
}

.unlock-sub {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
  margin-bottom: 28px;
}

.unlock-err {
  padding: 10px 14px;
  background: color-mix(in oklch, var(--danger) 10%, transparent);
  box-shadow: inset 0 0 0 var(--hairline) color-mix(in oklch, var(--danger) 35%, transparent);
  color: var(--danger);
  border-radius: var(--r-3);
  font-size: 13px;
  margin-bottom: 16px;
}

.unlock-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.unlock-input {
  padding: 10px 14px;
  background: var(--bg-0);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-1);
  border: 0;
  border-radius: var(--r-3);
  color: var(--text-0);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: box-shadow var(--dur-fast) ease;
}
.unlock-input:focus {
  box-shadow: inset 0 0 0 var(--hairline) var(--accent), var(--shadow-glow);
}

.unlock-submit,
.contact-submit {
  margin-top: 6px;
  padding: 10px 18px;
  background: var(--accent);
  color: #FFFFFF;
  border: 0;
  border-radius: var(--r-3);
  font-family: inherit;
  font-size: 14px;
  font-weight: var(--w-medium);
  cursor: pointer;
  transition: background-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
@media (hover: hover) {
  .unlock-submit:hover,
  .contact-submit:hover { background: var(--accent-hover); }
}
.unlock-submit:active,
.contact-submit:active { transform: translateY(1px); }

.unlock-hint {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}


/* ─── Contact ─────────────────────────────────────────────────────── */

.contact-head { margin-bottom: 32px; }
.contact-h1 {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: var(--w-normal);
  color: var(--text-0);
  margin: 8px 0 14px;
}
.contact-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--bg-1);
  box-shadow: 0 0 0 var(--hairline) var(--border-1);
  border-radius: var(--r-4);
}
.contact-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.contact-field input,
.contact-field textarea {
  padding: 10px 12px;
  background: var(--bg-0);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-1);
  border: 0;
  border-radius: var(--r-3);
  color: var(--text-0);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: box-shadow var(--dur-fast) ease;
  resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
  box-shadow: inset 0 0 0 var(--hairline) var(--accent), var(--shadow-glow);
}

.contact-mailto {
  padding: 28px;
  background: var(--bg-1);
  box-shadow: 0 0 0 var(--hairline) var(--border-1);
  border-radius: var(--r-4);
  text-align: center;
}
.contact-mailto-link {
  display: inline-block;
  margin: 16px 0;
  padding: 12px 20px;
  background: var(--accent);
  color: #FFFFFF;
  border-radius: var(--r-3);
  font-family: var(--font-mono);
  font-size: 15px;
  text-decoration: none;
  transition: background-color var(--dur-fast) ease;
}
@media (hover: hover) {
  .contact-mailto-link:hover { background: var(--accent-hover); }
}


/* ─── Newsletter signup (reusable partial) ────────────────────────── */

.newsletter {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: var(--bg-1);
  box-shadow: 0 0 0 var(--hairline) var(--border-1);
  border-radius: var(--r-4);
}
.newsletter-copy { max-width: 42ch; }
.newsletter-copy .t-h2 { margin: 6px 0 10px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  background: var(--bg-0);
  box-shadow: inset 0 0 0 var(--hairline) var(--border-1);
  border: 0;
  border-radius: var(--r-3);
  color: var(--text-0);
  font-family: inherit;
  font-size: 15px;
  outline: none;
  transition: box-shadow var(--dur-fast) ease;
}
.newsletter-form input[type="email"]:focus {
  box-shadow: inset 0 0 0 var(--hairline) var(--accent), var(--shadow-glow);
}
@media (max-width: 720px) {
  .newsletter {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .newsletter-form { flex-direction: column; }
}

.newsletter-success,
.contact-success {
  padding: 14px 18px;
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-1));
  box-shadow: 0 0 0 var(--hairline) color-mix(in srgb, var(--accent) 30%, var(--border-1));
  border-radius: var(--r-3);
  font-size: 15px;
  color: var(--text-0);
  line-height: 1.5;
}
.contact-success { margin-bottom: 24px; }

/* Accessibility helper — hide visually but keep for screen readers. */
.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;
}

.contact-foot {
  margin-top: 24px;
  text-align: center;
}
