/* Base — document, typography, utilities */

html {
  background: var(--cream);
  overflow-x: hidden;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1.8;
  overflow-x: hidden;
}

/* Film grain overlay (reusable) */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='512' height='512' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

/* Image treatment: amber colour grade + grain */
.img-treatment {
  position: relative;
  overflow: hidden;
}

.img-treatment::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--amber);
  mix-blend-mode: multiply;
  opacity: 0.12;
  pointer-events: none;
  z-index: 1;
}

/* Visually hidden (accessibility) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
