@charset "UTF-8";
/* ============================================================
   FORM
   Used for contact forms and single-column input layouts.
   Children: .form__group, .form__label, .form__input,
             .form__textarea, .form__hint, .form__error
   Add max-width: 100% to .form inside the 480px media block.
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: 40rem;
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}

.form__input,
.form__textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--elevated);
  border: 1px solid var(--border-mid);
  padding: 0.75rem 1rem;
  width: 100%;
  outline: none;
  transition: border-color 0.15s ease;
  appearance: none;
  -webkit-appearance: none;
  border-radius: 0;
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.form__textarea {
  resize: none;
  min-height: 8rem;
  line-height: 1.6;
}

.form__hint {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

.form__error {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--err);
  letter-spacing: 0.04em;
}

.form__input--error,
.form__textarea--error {
  border-color: var(--err);
}

/* ============================================================
   CODE BLOCKS
   Inline: <code> — for variable names, paths, values in prose.
   Block:  <pre><code> — for multi-line code samples.
   Scoped to .contact-col so these don't bleed into the rest of
   the page (main.scss already provides global code/pre styles).
   Not to be confused with .terminal, which is reserved for
   real command output with the dot-indicator title bar.
   ============================================================ */
.contact-col code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--accent-dim);
  background: var(--elevated);
  border: 1px solid var(--border);
  padding: 0.1em 0.4em;
}
.contact-col pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  padding: var(--space-md) var(--space-lg);
  overflow-x: auto;
  line-height: 1.6;
  white-space: pre-wrap;
}
.contact-col pre code {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: none;
  border: none;
  padding: 0;
}

.code-block,
pre {
  width: 100%;
  max-width: 100%;
}

/* Stretch makes both columns the same height; margin-top: auto on the
   download btn-row pins it to the bottom of the right column. */
.hero-grid {
  align-items: stretch;
}

.contact-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  width: 100%;
  max-width: 38rem;
}

.contact-col > .btn-row {
  margin-top: auto;
}

.code-block .pgp-key {
  width: 100%;
  max-width: 100%;
  padding: 1.5rem;
  container-type: inline-size;
  overflow-x: auto;
}

.pgp-key code {
  display: block;
  font-size: clamp(0.68rem, 1.6cqi, 0.88rem);
  line-height: 1.9;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.altcha {
  --altcha-color-base: #3b82f6;
}
