/* Old newsprint look: paper, wrinkles, rough edges and type. Works on any page.
   Put this in <head> first:
   <link href="https://fonts.googleapis.com/css2?family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&family=Playfair+Display:ital,wght@0,900;1,900&display=swap" rel="stylesheet">
*/

:root {
  --paper: #d9cba7;
  --ink: #15120d;
  --desk: #6f664f;  
  --gap: 6px; 
}

html { background: var(--desk); }

.head>p{
    margin-top: 0;
}

body {
  position: relative;
  /* isolation: isolate; */
  margin: var(--gap);
  min-height: calc(100vh - 2 * var(--gap) + 20px);
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.4;
}

/* the sheet itself: grain + stains + browned edges, torn by a displacement filter */
body::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .27  0 0 0 0 .15  0 0 0 .4 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(ellipse at 20% 15%, rgba(140, 120, 80, .16), transparent 45%),
    radial-gradient(ellipse at 85% 70%, rgba(140, 120, 80, .14), transparent 50%),
    var(--paper);
  box-shadow: inset 0 0 90px rgba(90, 70, 40, .4);
  filter: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='r' x='-5%25' y='-5%25' width='110%25' height='110%25'><feTurbulence type='fractalNoise' baseFrequency='.035' numOctaves='5' seed='3' result='n'/><feDisplacementMap in='SourceGraphic' in2='n' scale='16' xChannelSelector='R' yChannelSelector='G'/></filter></svg>#r") drop-shadow(0 3px 8px rgba(0, 0, 0, .45));
}

/* wrinkles: lit noise, multiplied onto the paper and masked to the edges */
body::after {
  content: "";
  position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='700' height='700'><filter id='w'><feTurbulence type='fractalNoise' baseFrequency='.007 .014' numOctaves='4' seed='7' stitchTiles='stitch' result='t'/><feDiffuseLighting in='t' lighting-color='%23ffffff' surfaceScale='10'><feDistantLight azimuth='40' elevation='55'/></feDiffuseLighting></filter><rect width='100%' height='100%' filter='url(%23w)'/></svg>") 0 0 / 700px 700px;
  mix-blend-mode: multiply;
  opacity: 1; /* wrinkle strength */
  -webkit-mask-image: radial-gradient(ellipse at center, transparent 25%, #000 90%);
  mask-image: radial-gradient(ellipse at center, transparent 25%, #000 90%);
}

/* img {
  max-width: 100%;
  height: auto;
  filter: grayscale(1) contrast(1.1) sepia(.2);
  mix-blend-mode: multiply;
} */
/* @media (max-width: 700px) {
  :root { --gap: 10px; }
  body { padding: 1rem; }
} */