/* Saint Sans Robe — page styling. Redaction behaviour lives in censor.css. */

:root { --censor-color: #000; --censor-radius: 1px; --censor-pad: 0; --censor-speed: 130ms; }

* { box-sizing: border-box; }
html, body { margin: 0; background: #fff; }
body { font-family: "Times New Roman", Times, serif; color: #111; }

/* topbar: logo + numer telefonu */
.topbar {
  position: absolute; top: 34px; left: 40px; right: 40px;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 20px;
  font-family: Helvetica, Arial, system-ui, sans-serif;
}
.brand { font-weight: 800; font-size: 34px; letter-spacing: -0.035em; color: #000; }

/* telefon — zasłonięty, odsłania się na hover (desktop) / tap (mobile) */
.phone {
  font-size: 13px; letter-spacing: 0.02em; color: #000;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  margin-top: 8px;
}

/* adresy e-mail — podkreślone, klik kopiuje */
.mail { color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* potwierdzenie skopiowania */
.copied { position: relative; }
.copied::after {
  content: "skopiowano";
  position: absolute; left: 50%; bottom: 125%; transform: translateX(-50%);
  font-family: Helvetica, Arial, sans-serif; font-size: 10px; letter-spacing: .04em;
  background: #000; color: #fff; padding: 3px 6px; white-space: nowrap;
  pointer-events: none;
}

/* ── ksero: czarne tło skanera (BEZ rotacji) ──────────────────
   .scan  = prosty, prostopadły czarny prostokąt (pokrywa skanera)
   .doc   = biała kartka położona lekko krzywo (rotacja)
   Padding .scan musi być większy niż "wystawanie" obróconej
   kartki: poziomo ≈ wysokość × sin(kąt), pionowo ≈ szerokość × sin(kąt).
   Dla 0.8° i kartki ~1400px: ~20px poziomo, ~9px pionowo.        */
.scan {
  --tilt: 0.8deg;              /* jedyne pokrętło: 0.6–1deg */
  position: relative;
  max-width: 690px;            /* 640 kartki + margines czerni */
  margin: 150px auto 120px;
  /* cieńsza czerń u góry i po lewej, grubsza po prawej i na dole */
  padding: 10px 36px 36px 14px;
  background: #000;
}

/* the scanned document — biała kartka, zrotowana */
.doc {
  position: relative;
  aspect-ratio: 1 / 1.4142;    /* proporcja A4 (rośnie, jeśli treść dłuższa) */
  padding: 40px 46px 60px;
  background: #fff;
  font-size: 15px;
  line-height: 1.5;
  transform: rotate(var(--tilt));
  transform-origin: 50% 50%;
  /* miękki cień krawędzi kartki na szybie — typowy dla ksero */
  box-shadow: 0 0 0 1px rgba(0,0,0,.55), 0 2px 10px rgba(0,0,0,.45);
}

/* email header block */
.hdr { margin: 2px 0; }
.hrow { display: grid; grid-template-columns: 150px 1fr; column-gap: 8px; align-items: baseline; }
.hdr--left .hrow { grid-template-columns: max-content 1fr; }
.hlabel { font-weight: bold; }
.hdr--right .hlabel { text-align: right; }
.hdr--left  .hlabel { text-align: left; }
.hvalue { word-break: break-word; }

.rule { border: none; border-top: 1.5px solid #000; margin: 20px 0; }

.para { margin: 12px 0; }

/* permanent black bar — NO text inside, so nothing to copy/select */
.rd {
  display: inline-block;
  width: var(--rw, 12ch);
  height: 1.02em;
  background: #000;
  vertical-align: -0.16em;
  border-radius: 1px;
  -webkit-user-select: none; user-select: none;
  pointer-events: none;
}
.rd::selection { background: #000; }

/* hover redaction (from censor.css via data-censor="hover"): covered -> reveals */
.rv { font: inherit; }

/* photo box — big black rectangle, reveals image on hover/tap */
.imgbox {
  display: block;
  width: 100%;
  height: 320px;
  margin: 18px 0;
  cursor: pointer;
}
.imgbox img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* bates / document code */
.bates {
  position: absolute; right: 16px; bottom: 12px;
  font-family: Helvetica, Arial, sans-serif; font-size: 11px; letter-spacing: 0.5px; color: #000;
}

@media (max-width: 720px) {
  .topbar { position: static; margin: 24px 20px 0; }
  .brand { font-size: 26px; }
  .scan { --tilt: 0.6deg; margin: 20px 10px 60px; padding: 7px 22px 22px 10px; }
  .doc { padding: 26px 20px 48px; }
  .hrow, .hdr--left .hrow { grid-template-columns: 110px 1fr; }
}
