.a3-page {
  position: relative;
  width: min(100%, 1123px);
  aspect-ratio: 297 / 420;
  overflow: hidden;

  /* رنگ روشن‌تر و شیری‌تر، با حس کاغذ قدیمی */
  background-color: #f4ecd7;

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.16),
    inset 0 0 46px rgba(105, 82, 48, 0.06);

  border: 1px solid rgba(88, 68, 42, 0.26);
}

.a3-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* بافت ریز و چاپ‌گونه */
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(78, 60, 35, 0.016) 0,
      rgba(78, 60, 35, 0.016) 1px,
      transparent 1px,
      transparent 4px
    ),
    repeating-linear-gradient(
      90deg,
      rgba(78, 60, 35, 0.012) 0,
      rgba(78, 60, 35, 0.012) 1px,
      transparent 1px,
      transparent 5px
    );

  opacity: 0.42;
  mix-blend-mode: multiply;
}

.a3-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  /* چرک‌تابی خیلی ملایم برای حفظ حس کاغذ */
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.10),
      rgba(255, 255, 255, 0.03) 18%,
      transparent 48%,
      rgba(120, 96, 60, 0.032)
    );

  opacity: 0.34;
}

.paper-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.11;
  filter: contrast(145%) brightness(106%);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

.content {
  position: relative;
  z-index: 2;
  min-height: 100%;
}

@media print {
  @page { size: A3 portrait; margin: 0; }
  body { padding: 0; background: none; display: block; }
  .a3-page { width: 297mm; height: 420mm; box-shadow: none; border: none; }
}
