/* ==========================================================================
   WRITE LINK — Fixed bottom-right link to /write/
   Inherits the same position and aesthetic as the former ASK toggle
   ========================================================================== */

.write-link {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;

  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  text-decoration: none;

  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 400;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  transition: color 0.5s ease, opacity 0.2s ease;
}

/* Light text on dark backgrounds */
body.on-dark .write-link {
  color: rgba(255, 255, 255, 0.6);
}

body.on-dark .write-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* Dark text on light backgrounds */
body.on-light .write-link {
  color: rgba(0, 0, 0, 0.4);
}

body.on-light .write-link:hover {
  color: rgba(0, 0, 0, 0.7);
}

.write-link:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 600px) {
  .write-link {
    bottom: 12px;
    right: 12px;
    font-size: 8px;
  }
}

@media print {
  .write-link {
    display: none !important;
  }
}
