/* ── CONTENT PROTECTION ────────────────────────────────────────────────────
   Deterrents only — none of this can stop an OS-level screenshot.
   Paired with /assets/protect.js, which toggles the classes below.        */

/* 1. No text selection or image dragging (form fields stay usable). */
body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
input, textarea, select, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}
img, svg { -webkit-user-drag: none; }

/* 2 & 3. Hide the page on PrintScreen, blur it while the window is unfocused. */
html.protect-hidden body { visibility: hidden; }
html.protect-blur body {
  filter: blur(14px);
  transition: filter 0.15s ease;
}

/* 4. Printing (and "Save as PDF") produces a notice instead of the page. */
@media print {
  body { display: none !important; }
  html::after {
    content: "Printing is disabled on this site. Visit amanjain.codes to read online.";
    display: block;
    padding: 2rem;
    font: 14pt/1.5 Georgia, serif;
    color: #000;
  }
}
