.handbook {
  display:grid;
  grid-template-columns:1fr 1fr;
  width:min(100%,1370px);

  margin:0 auto;

  color:#382e23;
  font:clamp(16px,1.3vw,19px)/1.5 Georgia,serif;
}
.leaf { min-width:0; padding:clamp(38px,5vw,82px) 12% clamp(48px,6vw,90px); }

.leaf h2 {
  margin-bottom:.5em;
  font:italic bold clamp(28px,3vw,46px)/1.09 Georgia,serif;
  letter-spacing:-.05em;
}
.leaf h2::after { content:""; display:block; width:2.1em; margin-top:.25em; border-bottom:2px solid #a74734; transform:rotate(-2deg); }
.field-notes { margin:1.5em 0 0; }
.field-notes dt { position:relative; margin:1.15em 0 0; padding-left:52px; font-weight:bold; }
.field-notes dd { margin:.18em 0 0 52px; }
.tile {
  position:absolute; left:0; top:0; width:37px; height:37px;
  display:grid; place-items:center; transform:rotate(-3deg);
  border:1px solid #77634c; font:bold 25px/1 Georgia,serif;
}
.tile.closed { background:#aea695; border:4px outset #cdbfa9; }
.tile.digit { color:#46582e; }
.tile.pin { color:#a32920; transform:rotate(3deg); }
.questions details { border-bottom:1px solid #86705260; }
.questions summary {
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  min-height:46px; padding:9px 0; cursor:pointer; font-weight:600; list-style:none;
}
.questions summary::-webkit-details-marker { display:none; }
.questions summary::after { content:"+"; color:#7e3829; }
.questions details[open] summary::after { content:"−"; }
.questions details p { margin:0 0 14px; font-size:.96em; }
.questions summary:hover { color:#7e3829; }
.bookmark {
  display:inline-flex; align-items:center; min-height:44px; margin-top:20px;
  padding:6px 24px 6px 12px; background:#773929; color:#fff2d8;
  clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%); font-style:italic;
}
.bookmark:hover,.bookmark:focus-visible { color:white; background:#4e281d; }
@media(max-width:760px) {
  .handbook { display:block; width:min(100%,480px); min-height:0; background:none; }
  .leaf { padding:32px 9% 42px; }

  .field-notes dt { margin-top:1em; }
  .leaf h2 { font-size:clamp(27px,7vw,34px); }
}
.skip:not(:focus) { clip-path:inset(50%); pointer-events:none; }


/* The paper belongs to the page. The illustration sits on top as a single layer. */
body {
  background: #f1e2cd url(notebook-paper.jpg) repeat;
}
main {
  isolation: isolate;
  position: relative;
  min-height: 100vh;
}
.desk-scene, .handbook, .leaf, .logic, .cover {
  background: transparent;
}
main::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 0;
  left: 50%;
  translate: -50% 0;
  width: min(100%,1370px);
  aspect-ratio: 3/2;
  background: url(field-desk.jpg) top center/100% auto no-repeat;
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}
@media (min-width: 1371px) {
  main::before {
    mask-image: linear-gradient(to right,transparent,black 3%,black 97%,transparent),
                linear-gradient(to bottom,black 82%,transparent);
    mask-composite: intersect;
  }
}
.handbook {
  padding: clamp(18px,3vw,44px) clamp(20px,6vw,100px) clamp(36px,6vw,90px);
  gap: clamp(30px,6vw,90px);
}
.leaf { padding: 0; }
.instructions { align-self: start; }
@media(max-width:760px) {
  main::before { display:none; }
  .desk-scene, .cover, .logic, .handbook, .leaf { background:transparent; }
  .logic { padding:18px 20px; }
  .handbook { padding:22px 20px 42px; }
  .leaf { padding:0; }
  .questions { margin-top:34px; }
}
