/* Painted marks. Each is a brush drawing turned into a transparent shape
   (app/assets/images/marks) and filled with a theme token, so it repaints
   itself in light, dark and high contrast. */

.paint {
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
}

/* The blaze: painted status mark. Outline (ghost) and double stay geometric. */
.blaze:not(.ghost):not(.double) {
  border-radius: 0; transform: none; width: 9px; height: 18px;
  -webkit-mask: url("/assets/marks/blaze-a7568329.png") center / 100% 100% no-repeat;
  mask: url("/assets/marks/blaze-a7568329.png") center / 100% 100% no-repeat;
}

/* Lists with painted blazes as bullets. */
ul.trail { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
ul.trail > li { display: flex; gap: 12px; align-items: baseline; }
ul.trail > li::before {
  content: ""; flex: none; width: 7px; height: 14px; transform: translateY(2px);
  background: var(--blaze);
  -webkit-mask: url("/assets/marks/blaze-a7568329.png") center / 100% 100% no-repeat;
  mask: url("/assets/marks/blaze-a7568329.png") center / 100% 100% no-repeat;
}

/* A footpath divider. */
hr.trail {
  border: 0; height: 12px; margin: 8px 0;
  background: var(--line-2);
  -webkit-mask: url("/assets/marks/divider-e37cc1bb.png") left center / auto 100% repeat-x;
  mask: url("/assets/marks/divider-e37cc1bb.png") left center / auto 100% repeat-x;
}

/* A quick brush swash under a heading: <h1 class="swash">. */
.swash { position: relative; display: inline-block; padding-bottom: 10px; }
.swash::after {
  content: ""; position: absolute; left: -2px; bottom: 0; width: min(100%, 220px); height: 14px;
  background: var(--mark);
  -webkit-mask: url("/assets/marks/underline-a1fdc1b9.png") left center / 100% 100% no-repeat;
  mask: url("/assets/marks/underline-a1fdc1b9.png") left center / 100% 100% no-repeat;
}

/* Contour lines behind an element: <section class="contours">. */
.contours { position: relative; isolation: isolate; }
.contours::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--line);
  -webkit-mask: url("/assets/marks/contours-3c6adddf.png") right -60px top -40px / 640px auto no-repeat;
  mask: url("/assets/marks/contours-3c6adddf.png") right -60px top -40px / 640px auto no-repeat;
  opacity: 0.9;
}

/* Brush icons: <span class="ticon todos" aria-hidden="true"></span>. */
.ticon { display: inline-block; width: 26px; height: 26px; flex: none; background: currentColor; }
.ticon { -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.ticon.todos { --icon: url("/assets/marks/icon-todos-eaafd74f.png"); }
.ticon.schedule { --icon: url("/assets/marks/icon-schedule-eeadab99.png"); }
.ticon.photos { --icon: url("/assets/marks/icon-photos-17f17cc5.png"); }
.ticon.ideas { --icon: url("/assets/marks/icon-ideas-073075f7.png"); }
.ticon.people { --icon: url("/assets/marks/icon-people-27b04a6e.png"); }

@media (forced-colors: active) {
  .ticon, .swash::after, hr.trail, ul.trail > li::before { background: CanvasText; }
}
