/* Quote widget. quote.js sets --fs, the largest font size at which the quote fits the embed. */
.box {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.qt {
  display: grid;
  justify-items: center;
  gap: 0.5em;
  max-width: 100%;
  margin: 0;
  font-size: var(--fs, 20px);
  text-align: center;
}
.text {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.32;
  overflow-wrap: break-word;
  text-wrap: balance;
}
.f-serif .text {
  font-weight: 400;
}
.f-display .text {
  font-weight: 800;
  letter-spacing: -0.02em;
}
.by {
  font-family: var(--font-sans);
  font-size: max(10px, 0.44em);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}
.by[hidden] {
  display: none;
}

/* Card: a large quotation mark on top */
.mark {
  height: 0.62em;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 2.6em;
  font-weight: 700;
  line-height: 1;
  color: var(--accent, currentColor);
  opacity: 0.28;
}
.has-accent .mark {
  opacity: 1;
}

/* Block: like a Notion quote block */
.s-block .qt {
  justify-items: start;
  gap: 0.55em;
  padding-left: 0.8em;
  border-left: max(3px, 0.12em) solid var(--accent, currentColor);
  text-align: left;
}
.s-block .text {
  font-weight: 450;
  text-wrap: pretty;
}

/* Note: a sticky note with a strip of tape */
.s-note .box {
  width: calc(100% - 4vmin);
  height: calc(100% - 5vmin);
  padding: 7vmin 7vmin 6vmin;
  border-radius: 2px 2px 4px 4px;
  background: var(--tile, #fbefa4);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    0 10px 20px -10px rgba(0, 0, 0, 0.3);
  color: var(--num, #4b4127);
  transform: rotate(-1deg);
}
.s-note .tape {
  position: absolute;
  top: -1.4vmin;
  left: 50%;
  width: min(24%, 120px);
  height: max(14px, 6vmin);
  background: rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transform: translateX(-50%) rotate(2deg);
}
.s-note .text {
  font-weight: 600;
}
.s-note .by {
  opacity: 0.7;
}
