/* J4 paper: overrides on top of css/j4.css.
   1. The paper texture from the cut-paper study (fibres and soft cloudiness, drawn on a canvas
      in styles/j4-paper.js) on every sheet: the desk, the covers, the pages, the label, the sticker,
      the tabs, the prints, the notes.
   2. A larger cover photo, the name label moved lower, and oak branches behind the photo. */

/* ---------- paper everywhere ---------- */
.theme-j4 .bg { background: var(--t-paper), var(--blush); background-size: 512px; }

/* the pages: toothy drawing paper with fibres in it, a little darker towards the edges where a
   much-handled page picks up colour */
.theme-j4 .page {
  background-image: radial-gradient(rgba(134, 112, 96, 0.22) 1.1px, transparent 1.5px), var(--t-tooth), var(--t-pulp);
  background-size: 22px 22px, 512px, 512px;
  background-position: 11px 11px, 0 0, 0 0;
  box-shadow: inset 0 0 46px rgba(150, 122, 100, 0.1), inset 0 0 3px rgba(150, 122, 100, 0.16);
}
/* the covers: linen book cloth over board, the weave catching the light */
.theme-j4 .coverface {
  background-image: radial-gradient(rgba(255, 254, 251, 0.62) 1.2px, transparent 1.6px), var(--t-cloth), var(--t-board);
  background-size: 22px 22px, 240px, 512px;
  background-position: 11px 11px, 0 0, 0 0;
}
.theme-j4 .board-right { background-image: var(--t-cloth), var(--t-board); background-size: 240px, 512px; }
.theme-j4 .cover-label {
  background-image: radial-gradient(rgba(134, 112, 96, 0.2) 1.1px, transparent 1.5px), var(--t-paper);
  background-size: 22px 22px, 512px;
}
.theme-j4 .sticker-text,
.theme-j4 .mail-strip,
.theme-j4 .print,
.theme-j4 .scrap,
.theme-j4 .sticky,
.theme-j4 .pasted,
.theme-j4 .words .word,
.theme-j4 .tape,
.theme-j4 .tabs button:nth-child(n) {
  background-image: var(--t-paper);
  background-size: 512px;
}
.theme-j4 .hl span { background-image: var(--t-paper); background-size: 512px; }

/* ---------- the cover: bigger photo, branches behind it, label lower ---------- */
.theme-j4 .coverface.front { overflow: hidden; }

.theme-j4 .oak {
  position: absolute;
  display: block;
  fill: var(--rose);
  pointer-events: none;
}
/* the large branch rises from the lower right, behind the photo, and leaves the cover at the top */
.theme-j4 .oak-r { left: 318px; top: 18px; width: 268px; height: 553px; transform: rotate(16deg); }
/* one branch alone on the back cover */
.theme-j4 .oak-back { left: 150px; top: 150px; width: 300px; height: 620px; transform: rotate(-8deg) scaleX(-1); }
/* a smaller one comes in from the left, mirrored */
.theme-j4 .oak-l { left: -6px; top: 210px; width: 178px; height: 368px; transform: rotate(-22deg) scaleX(-1); opacity: 0.85; }

.theme-j4 .cover-photo {
  top: 96px;
  width: 364px;
  height: 364px;
  margin-left: -182px;
  border-width: 10px;
  transform: rotate(3deg);
}
.theme-j4 .cover-photo img { transform: scale(1.3); }

.theme-j4 .sticker-text { left: 424px; top: 50px; }

.theme-j4 .cover-label { top: 572px; }

/* ---------- about: her greeting opens the page ---------- */
.theme-j4 .about-hi { font: var(--head-w) 28px/1.2 var(--font-head); letter-spacing: -0.015em; color: var(--cocoa); margin: -4px 0 14px; }

/* the "this is me" print, smaller, pinned into the top corner of the first About page */
.theme-j4 .print.ph-side {
  float: right;
  --w: 214px;
  --ar: 1 / 1;
  --pos: 50% 4%;
  --z: 1.28;
  --zo: 50% 16%;
  margin: 6px -6px 14px 22px;
  padding: 10px;
  transform: rotate(4deg);
}
.theme-j4 .print.ph-side figcaption { font-size: 24px; padding: 8px 0 6px; }
.theme-j4 .print.ph-side .tape { width: 86px; margin-left: -43px; height: 26px; }

/* ---------- breaking up the text ---------- */
.theme-j4 .p-about-open .scrap { display: inline-block; margin-top: 18px; }

/* a line of hers, pulled out large */
.theme-j4 .pull {
  position: relative;
  margin: 26px 0 26px;
  padding: 2px 0 2px 22px;
  border-left: 4px solid var(--pop);
  font: 500 25px/1.4 var(--font-body);
  letter-spacing: -0.01em;
  color: var(--cocoa);
}
.theme-j4 .pull.big { margin-top: 4px; font-size: 31px; line-height: 1.3; letter-spacing: -0.015em; }

/* the tree photo, no caption, taped at an angle */
.theme-j4 .print.ph-tree { --w: 300px; --ar: 4 / 3; --pos: 50% 100%; --z: 1.5; --zo: 50% 86%; padding: 12px; margin: 6px 0 0 70px; transform: rotate(-3deg); }
.theme-j4 .print.ph-tree .tape { background: color-mix(in srgb, var(--butter) 85%, transparent); }

/* a paragraph pasted in on its own card */
.theme-j4 .note-card { margin-top: 34px; padding: 34px 30px 28px; background-color: var(--paper); transform: rotate(1.4deg); }
.theme-j4 .note-card p { font: 500 19px/1.6 var(--font-body); color: var(--cocoa); }

/* the core conditions as stamped labels */
.theme-j4 .chips { display: flex; flex-wrap: wrap; gap: 12px 14px; margin: 4px 0 26px !important; }
.theme-j4 .chips span {
  padding: 6px 16px 3px;
  font: 400 24px/1.2 var(--font-hand);
  color: var(--cocoa);
  background-color: var(--butter);
  background-image: var(--t-paper);
  background-size: 512px;
  box-shadow: 0 4px 10px rgba(110, 87, 75, 0.1);
  transform: rotate(-2deg);
}
.theme-j4 .chips span:nth-child(2) { background-color: var(--rose); transform: rotate(1.5deg); }
.theme-j4 .chips span:nth-child(3) { background-color: var(--oat); transform: rotate(-1deg); }

/* an oak branch growing in from a page corner, behind the text */
.theme-j4 .page .oak-page { position: absolute; z-index: 0; right: -46px; bottom: -70px; width: 190px; height: 392px; transform: rotate(-14deg); opacity: 0.75; }
.theme-j4 .page > :not(.oak):not(.pn):not(.shade):not(.turn-hint) { position: relative; z-index: 1; }
