/* The free coloring pages under /coloring-pages/. The look is site.css; this adds what those pages have and the front page does not. */

/* Where you are */

.crumbs {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}
.crumbs li + li::before { content: "/"; margin: 0 0.7em; opacity: 0.45; }
.crumbs a { text-underline-offset: 4px; }

/* The top of a list of pages */

.shelf-top { padding: 56px 0 64px; }
.shelf-top .lead { margin-top: 20px; }
.how { margin-top: 16px; color: var(--ink-soft); max-width: 36em; }

/* A row of pages to pick from */

.shelf { padding-bottom: 88px; }
.shelf h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem); }
.shelf h2 a { text-decoration: none; }
.shelf > p { margin-top: 12px; color: var(--ink-soft); max-width: 40em; }
.shelf ul { margin-top: 28px; }
.shelf li a { display: block; text-decoration: none; }
.shelf li a:hover span, .shelf li a:focus-visible span { text-decoration: underline; text-underline-offset: 4px; }
.shelf li img { width: 100%; }
.shelf > p .soft { margin-top: 20px; }

/* One page: print it, save it, color it */

.hero.one { align-items: start; padding-top: 48px; }
.hero.one h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem); }
.hero.one .lead { margin-top: 20px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.actions .soft { margin-top: 0; }
.soft.go { background: var(--ink); color: #fff; }

.hero.one .made-from { margin-top: 48px; }
.hero.one .soon { margin-top: 20px; }
a.soon { text-decoration: none; }

.print-foot { display: none; }

/* The app, at the foot of a list */

.own { padding-bottom: 112px; }
.own .lead { margin-top: 16px; }
.own h3 { margin-top: 56px; }
.topics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: 14px;
}
.topics li { padding: 12px 0; border-top: 2px solid rgba(61, 61, 74, 0.08); }
.topics a { text-underline-offset: 4px; }

@media (max-width: 900px) {
  .shelf-top { padding: 32px 0 48px; }
  .shelf { padding-bottom: 64px; }
  /* On a narrow screen the picture comes straight after the buttons, before the cards. */
  .hero.one { padding-top: 28px; gap: 0; }
  .hero.one .pitch { display: contents; }
  .hero.one .desk { order: 1; margin-top: 36px; }
  .hero.one .made-from { order: 2; }
  .topics { grid-template-columns: minmax(0, 1fr); }
  .own { padding-bottom: 80px; }
}

/* On paper: the bare drawing, one page, with the web address under it. */

@media print {
  @page { margin: 0.5in; }
  body { background: #fff; }
  .top, footer, .pitch, .tray, .hint, .more, .sheet canvas { display: none !important; }
  main > section.hero.one { display: block; width: auto; margin: 0; padding: 0; }
  .hero.one .desk { max-width: none; margin: 0; }
  .sheet { aspect-ratio: auto; overflow: visible; border-radius: 0; box-shadow: none; background: none; }
  .sheet img { position: static; display: block; width: auto; height: 9.4in; max-width: 100%; margin: 0 auto; mix-blend-mode: normal; }
  .print-foot { display: block; margin-top: 0.1in; text-align: center; font-size: 9pt; color: #777; }
}
