/* MARKETING ONLY. Pen underlines, rings, margin notes and stickies.
   Do not import this file from liveskill/assets. Product UI uses
   components/brand.css (highlight, paper card) and nothing from here. */

@import "./caveat.css";

.ls-pen-underline {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.ls-pen-underline > svg {
  position: absolute;
  left: -4%;
  width: 108%;
  height: 0.42em;
  bottom: -0.22em;
  overflow: visible;
  pointer-events: none;
}

.ls-pen-underline > svg path {
  fill: none;
  stroke: var(--ls-color-pen, #d9382b);
  stroke-width: 2.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ls-pen-ring {
  position: relative;
  display: inline-block;
}

.ls-pen-ring > svg {
  position: absolute;
  inset: -14px -12px;
  width: calc(100% + 24px);
  height: calc(100% + 28px);
  overflow: visible;
  pointer-events: none;
}

.ls-pen-ring > svg path {
  fill: none;
  stroke: var(--ls-color-pen, #d9382b);
  stroke-width: 2.8;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.ls-margin-note {
  font-family: var(--ls-font-hand, "Caveat", cursive);
  font-weight: 600;
  font-size: 1.3125rem;
  line-height: 1.05;
  color: var(--ls-color-pen-text, #8c2d27);
  transform: rotate(var(--ls-tilt, -3deg));
  display: inline-flex;
  gap: 0.35em;
  align-items: center;
}

.ls-margin-note--ballpoint {
  color: var(--accent, var(--ls-color-primary, #213a8f));
}

.ls-sticky {
  position: relative;
  background: var(--ls-color-sticky, #f8f1c2);
  box-shadow: var(--ls-shadow-sticky, 0 1px 1px rgb(80 64 20 / 0.1), 0 10px 14px -10px rgb(80 64 20 / 0.35));
  padding: 1rem 1rem 1.125rem;
  font: 600 1.4375rem/1.05 var(--ls-font-hand, "Caveat", cursive);
  color: var(--accent, #213a8f);
  transform: rotate(var(--ls-tilt, -2deg));
  min-height: 6.5rem;
}

.ls-sticky::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.75rem;
  background: rgb(247 227 90 / 0.35);
}

@media (min-width: 1024px) {
  .ls-margin-note[data-side] {
    position: absolute;
    width: 13.75rem;
  }

  .ls-margin-note[data-side="right"] {
    left: calc(100% + 1.5rem);
  }

  .ls-margin-note[data-side="left"] {
    right: calc(100% + 1.5rem);
    justify-content: flex-end;
  }
}

.dark .ls-margin-note,
[data-theme="dark"] .ls-margin-note {
  color: #f28b7f;
}

.dark .ls-margin-note--ballpoint,
[data-theme="dark"] .ls-margin-note--ballpoint,
.dark .ls-sticky,
[data-theme="dark"] .ls-sticky {
  color: var(--accent);
}
