/* Cable form — the Society's gate, in wire-room posture.
   Despatch-slip stationery holding monospace `FROM:` / `KEY:` cable lines.
   Decision · /bfc/decisions/authentik-login/
   Source · /bfc/explorations/authentik-private-cable/

   The despatch-slip frame is the metaphor; the copy is one eyebrow and an
   aside. The threshold contract holds via restraint, not via gestures of
   known-ness. */

/* The cable-room main surface — centred study, ample air. */
.cable-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  position: relative;
  background: #f4eedc;
}

/* Faint heritage-paper texture: stipple of dust over cream. */
.cable-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(184, 138, 44, 0.03) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(26, 31, 60, 0.025) 0 1px, transparent 1.5px),
    radial-gradient(circle at 42% 88%, rgba(26, 31, 60, 0.02) 0 1px, transparent 1.5px);
  background-size: 280px 280px, 220px 220px, 320px 320px;
  opacity: 0.7;
}

/* The despatch slip itself. Slight beige cast against the cream stage. */
.despatch {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  background: #faf5e3;
  border: 1px solid #d8cfb6;
  box-shadow:
    0 1px 0 rgba(26, 31, 60, 0.04),
    0 12px 32px -16px rgba(26, 31, 60, 0.18);
  padding: 38px 40px 32px;
}

/* Perforated edge along the left margin — the tear strip from the
   telegraph operator's pad. Pure ornament; no behaviour. */
.despatch::before {
  content: '';
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 14px;
  width: 1px;
  background-image: linear-gradient(to bottom, #b88a2c 0 4px, transparent 4px 10px);
  opacity: 0.55;
}

.despatch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 2px double #1a1f3c;
  padding-bottom: 14px;
  margin-bottom: 22px;
}

.despatch-imprint {
  display: flex;
  align-items: center;
  gap: 12px;
}

.despatch-crest {
  width: 32px;
  height: 39px;
  flex: 0 0 auto;
}

.despatch-name {
  font-family: "Libre Caslon Text", serif;
  font-size: 13px;
  font-weight: 700;
  color: #1a1f3c;
  line-height: 1.15;
  letter-spacing: -0.005em;
}

.despatch-name span {
  display: block;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #b88a2c;
  margin-top: 4px;
  font-style: italic;
}

.despatch-dateline {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a6862;
  text-align: right;
  line-height: 1.6;
}

.despatch-dateline strong {
  color: #1a1f3c;
  font-weight: 500;
}

.despatch-eyebrow {
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 10px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: #b88a2c;
  margin-bottom: 22px;
}

/* Form lines — monospace label flush left, ruled underline, input on the rule. */
.cable-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.cable-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: end;
  gap: 12px;
  border-bottom: 1px solid #d8cfb6;
  padding-bottom: 6px;
}

.cable-line:focus-within {
  border-bottom-color: #1a1f3c;
}

.cable-label {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6a6862;
  padding-bottom: 4px;
}

.cable-input {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 14px;
  color: #1a1f3c;
  background: transparent;
  border: none;
  outline: none;
  padding: 4px 0;
  width: 100%;
  letter-spacing: 0.04em;
}

.cable-input::placeholder {
  color: rgba(106, 104, 98, 0.55);
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Transmit button — heavy navy block, cable-style label. */
.transmit {
  display: block;
  width: 100%;
  background: #1a1f3c;
  color: #f4eedc;
  border: none;
  padding: 13px 18px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
}

.transmit:hover { background: #2a2f4c; }
.transmit:active { background: #0f1228; }

.despatch-aside {
  margin-top: 18px;
  text-align: center;
  font-family: "Libre Caslon Text", serif;
  font-style: italic;
  font-size: 12px;
  color: #6a6862;
}

.despatch-aside a {
  color: #1a1f3c;
  text-decoration: none;
  border-bottom: 1px dotted rgba(26, 31, 60, 0.4);
}

.despatch-aside a:hover {
  border-bottom-style: solid;
}

@media (max-width: 540px) {
  .cable-stage { padding: 40px 20px; }
  .despatch { padding: 30px 26px 26px; }
}
