/* The pages, drawn in the pond's ink: the canvases inkui.js tucks behind boxes, buttons and headings. */

html.ink-ready body {
  background-image: var(--grain);
}

/* anything with a drawing behind it: the drawing replaces its background and border */
.inked {
  position: relative;
  isolation: isolate;
  background: none !important;
  border-color: transparent !important;
  box-shadow: none !important;
}
.ink-layer {
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.site-header nav a,
.top nav a {
  display: inline-block;
}
.land-link.inked,
.action.inked,
.button.primary.inked,
nav a[aria-current="page"].inked,
.activity.active.inked {
  color: #fff !important;
  transform: none !important;
}
.land-link.inked:hover,
.action.inked:hover,
.button.primary.inked:hover {
  filter: brightness(0.92);
}

/* a green stroke drawn under a heading */
.underlined {
  position: relative;
}
.ink-underline {
  position: absolute;
  height: 16px;
  pointer-events: none;
}

/* step numbers sit in a drawn blot of green */
.steps > li.blotted::before {
  border: 0 !important;
  background: none !important;
  color: #fff !important;
  z-index: 1;
}
.ink-blot {
  position: absolute;
  left: -2px;
  top: -4px;
  z-index: 0;
}

/* little drawn scenes between sections take the place of the wavy rules */
.ink-divider {
  width: min(980px, calc(100% - 48px));
  height: 58px;
  margin: 6px auto;
}
.ink-divider canvas {
  display: block;
}
html.ink-ready .essay,
html.ink-ready .project-note,
html.ink-ready .adopt,
html.ink-ready .rules,
html.ink-ready .frogs-list,
html.ink-ready .bottom {
  background-image: none !important;
  border-top: 0 !important;
}

/* the logo: a frog in the water, drawn */
.ink-logo {
  width: 40px;
  height: 40px;
  margin: -8px -2px -6px -8px;
  flex: none;
}

/* the hero frog's drawn lily pad, ripples and reeds */
.ink-stage {
  position: absolute;
  left: 50%;
  bottom: -10%;
  transform: translateX(-50%);
  pointer-events: none;
}
html.ink-ready .hero-frog::before {
  display: none;
}

/* a frog for each pastime, beside its words */
.activity-preview.with-frog {
  display: grid;
  grid-template-columns: 116px 1fr;
  column-gap: 22px;
  align-items: center;
  text-align: left;
}
.activity-preview.with-frog .tab-frog {
  grid-row: 1 / span 2;
  width: 116px;
  height: 116px;
}
@media (max-width: 580px) {
  .activity-preview.with-frog {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .activity-preview.with-frog .tab-frog {
    grid-row: auto;
    margin: 0 auto 6px;
    width: 96px;
    height: 96px;
  }
}

/* questions: the wrapper carries the drawn box, the question inside goes plain */
.q-card {
  margin-bottom: 12px;
}
.q-card details {
  margin: 0;
  background: none;
  border: 0;
}

/* the pond page's panels stay pinned where they were; the drawing just sits behind them */
.panel.inked,
.hint.inked {
  position: fixed;
}
