/* Printable sheets. US Letter with half-inch margins, which also fits A4 when the browser scales to fit.
   On screen the sheets sit on a desk with one bar of actions; on paper only the sheets remain. */
@font-face {
  font-family: Nunito;
  src: url(/fonts/nunito.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: block;
}
@page {
  size: letter;
  margin: 0;
}
* {
  box-sizing: border-box;
  margin: 0;
}
html {
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  color: #0f2e2d;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}
body {
  background: #113938;
}
.bar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 18px;
  padding: 12px max(16px, 4vw);
  background: #0b2928;
  color: #fff5df;
  font-weight: 750;
}
.bar a {
  color: inherit;
  font-weight: 850;
  text-underline-offset: 4px;
}
.bar button {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #ffc83d;
  color: #0f2e2d;
  font: inherit;
  font-weight: 900;
  font-size: 1.02rem;
  cursor: pointer;
  box-shadow: 0 4px 0 #c9921d;
}
.bar button:focus-visible,
.bar a:focus-visible {
  outline: 3px solid #ffc83d;
  outline-offset: 3px;
}
.desk {
  padding: 22px 0 40px;
  overflow-x: auto;
}
.sheet {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 8.5in;
  height: 11in;
  margin: 0 auto 22px;
  padding: 0.5in 0.55in 0.42in;
  overflow: hidden;
  background: #fff;
  break-after: page;
  page-break-after: always;
}
.sheet:last-child {
  break-after: auto;
  page-break-after: auto;
}
/* A phone shows each sheet scaled to its width. */
@media screen and (max-width: 8.7in) {
  .sheet {
    zoom: calc((100vw - 20px) / 816px);
  }
}
@media print {
  body {
    background: none;
  }
  .bar {
    display: none;
  }
  .desk {
    padding: 0;
    overflow: visible;
  }
  .sheet {
    margin: 0;
    zoom: 1;
  }
}
.foot {
  margin-top: auto;
  padding-top: 0.12in;
  display: flex;
  justify-content: space-between;
  gap: 0.2in;
  font-size: 8.5pt;
  font-weight: 700;
  color: #5b6f6c;
}
.foot b {
  font-weight: 900;
  color: #0f2e2d;
}
h1 {
  font-size: 40pt;
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-wrap: balance;
}
h2 {
  font-size: 24pt;
  font-weight: 1000;
  letter-spacing: -0.04em;
  line-height: 1;
}
.lead {
  margin-top: 0.12in;
  font-size: 14pt;
  font-weight: 700;
  line-height: 1.3;
  color: #2a4846;
}
.fill {
  display: flex;
  align-items: baseline;
  gap: 0.12in;
  font-size: 15pt;
  font-weight: 850;
}
.fill i {
  flex: 1;
  border-bottom: 2.5pt dotted #0f2e2d;
  height: 0.3in;
}
.grown {
  padding: 0.16in 0.2in;
  border-radius: 0.16in;
  background: #fff5df;
  font-size: 10.5pt;
  font-weight: 650;
  line-height: 1.38;
  color: #2a4846;
}
.grown b {
  color: #0f2e2d;
  font-weight: 900;
}

/* Story: a cover, then two picture panels to a sheet. */
.cover-art {
  flex: 1;
  min-height: 0;
  margin: 0.25in 0 0.22in;
  border-radius: 0.3in;
  overflow: hidden;
}
.cover-art img,
.pic img.bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.13in;
}
.panel + .panel {
  margin-top: 0.22in;
}
.pic {
  position: relative;
  min-height: 0;
  border-radius: 0.26in;
  overflow: hidden;
  background: #e4f2f0;
}
.pic.soft {
  background: radial-gradient(circle at 50% 56%, #ffe9a8 0 1.35in, #e4f2f0 1.36in);
}
.pic .who {
  position: absolute;
  bottom: 0;
  left: 6%;
  height: 88%;
}
.pic .who.right {
  left: auto;
  right: 6%;
}
.pic .thing {
  position: absolute;
  inset: 7% 0;
  margin: auto;
  height: 86%;
  max-width: 80%;
  object-fit: contain;
}
.says {
  display: grid;
  grid-template-columns: 0.46in 1fr;
  gap: 0.14in;
  align-items: start;
}
.says span {
  display: grid;
  place-items: center;
  width: 0.46in;
  height: 0.46in;
  border-radius: 50%;
  background: #ffc83d;
  font-size: 14pt;
  font-weight: 1000;
}
.says p {
  font-size: 19pt;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.01em;
}

/* Picture cards: eight to cut out, then a board to put them on. */
.cards {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  margin-top: 0.2in;
}
.card {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0.07in;
  padding: 0.13in;
  border: 1.6pt dashed #8aa09c;
  margin: -0.8pt;
}
.card .pic {
  border-radius: 0.16in;
}
.card .pic.soft {
  background: radial-gradient(circle at 50% 56%, #ffe9a8 0 0.72in, #e4f2f0 0.73in);
}
.card p {
  display: flex;
  align-items: center;
  gap: 0.09in;
  font-size: 15pt;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.card p span {
  display: grid;
  place-items: center;
  flex: none;
  width: 0.34in;
  height: 0.34in;
  border-radius: 50%;
  background: #ffc83d;
  font-size: 11pt;
}
.board {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.22in;
  margin: 0.3in 0 0.25in;
}
.board div {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.12in;
}
.board h2 {
  text-align: center;
}
.board i {
  border: 2.2pt dashed #8aa09c;
  border-radius: 0.2in;
}
.board.wide {
  grid-template-columns: repeat(4, 1fr);
  flex: 0 0 2.6in;
}

/* Reward chart. */
.steps {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(6, 1fr);
  gap: 0.1in;
  margin: 0.22in 0;
}
.step {
  display: grid;
  grid-template-columns: 0.95in 1fr 0.95in;
  gap: 0.2in;
  align-items: center;
  padding: 0.06in 0.2in 0.06in 0.1in;
  border-radius: 0.2in;
  background: #fff5df;
}
.step .pic {
  height: 0.86in;
  border-radius: 0.14in;
}
.step .pic.soft {
  background: radial-gradient(circle at 50% 56%, #ffe9a8 0 0.36in, #e4f2f0 0.37in);
}
.step p {
  font-size: 17pt;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.step i {
  width: 0.86in;
  height: 0.86in;
  border: 2.4pt dashed #2a8a85;
  border-radius: 50%;
  background: #fff;
}
.well-done {
  display: grid;
  grid-template-columns: 1.1in 1fr;
  gap: 0.2in;
  align-items: center;
  padding: 0.12in 0.25in;
  border: 3pt solid #ffc83d;
  border-radius: 0.24in;
}
.well-done img {
  height: 1.15in;
  justify-self: center;
}
.well-done p {
  font-size: 13pt;
  font-weight: 750;
  line-height: 1.3;
}
.well-done b {
  display: block;
  font-size: 22pt;
  font-weight: 1000;
  letter-spacing: -0.04em;
}
.stickers {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 0.14in;
  margin: 0.22in 0;
}
.stickers span {
  display: grid;
  place-items: center;
  min-height: 0;
  height: 100%;
  aspect-ratio: 1;
  justify-self: center;
  border: 1.6pt dashed #8aa09c;
  border-radius: 50%;
}
.stickers img {
  width: 78%;
}

/* Coloring pages. */
.color-art {
  flex: 1;
  min-height: 0;
  display: block;
  width: 100%;
  object-fit: contain;
}
.color-cap {
  margin-top: 0.12in;
  text-align: center;
  font-size: 17pt;
  font-weight: 900;
  letter-spacing: -0.02em;
}
