/*
  Adaptado de "Anotações à Mão".
  © 2026 Upward Creative Academy. Todos os direitos reservados.
  LICENÇA DE USO: liberado para usar em projetos seus e de clientes.
  É proibido revender, redistribuir, compartilhar ou publicar este código (original ou modificado)
  como template, kit, curso ou produto.
*/
/* seção em papel de caderno */
.anot { position: relative; padding: clamp(64px, 9vw, 128px) clamp(20px, 7vw, 120px); background-color: #fbf7ee; overflow: hidden;
  background-image: linear-gradient(90deg, transparent 54px, rgba(224, 54, 44, .24) 54px, rgba(224, 54, 44, .24) 55px, transparent 55px),
    linear-gradient(rgba(39, 71, 208, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 71, 208, .065) 1px, transparent 1px);
  background-size: 100% 100%, 30px 30px, 30px 30px; }
.anot-tag { position: absolute; right: clamp(20px, 4vw, 56px); top: clamp(18px, 3vw, 36px); margin: 0; color: rgba(31, 27, 22, .5); font: 700 clamp(17px, 1.6vw, 22px)/1 'Caveat', 'Bradley Hand', 'Segoe Print', cursive; transform: rotate(3deg); }

.upw-note {
  --upw-ink: #1a1714;
  --upw-pen: #e0362c;
  --upw-pen-2: #2747d0;
  --upw-hl: #f3c93a;
  --upw-size: clamp(30px, 5vw, 76px);
  --upw-font: "Libre Caslon Display", Georgia, serif;
  --upw-hand: 'Caveat', 'Bradley Hand', 'Segoe Print', 'Comic Sans MS', cursive;
  position: relative; isolation: isolate; box-sizing: border-box; width: min(100%, 15.5em); margin: 0 auto;
  padding: .7em 0 .5em; font-size: var(--upw-size);
}
.upw-note__t { position: relative; z-index: 1; margin: 0; color: var(--upw-ink); font: 400 1em/1.52 var(--upw-font); letter-spacing: -.012em; text-wrap: pretty; }
.upw-note__hl, .upw-note__pen { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.upw-note__hl { z-index: 0; } .upw-note__pen { z-index: 2; }
.upw-note__n { position: absolute; z-index: 3; white-space: nowrap; color: var(--upw-pen); font: 700 .6em/1 var(--upw-hand); pointer-events: none; }
.upw-note .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* sem script: marcações simples */
.upw-note:not(.is-on) [data-anot="marca-texto"] { background: linear-gradient(transparent 48%, var(--upw-hl) 48%, var(--upw-hl) 88%, transparent 88%); }
.upw-note:not(.is-on) [data-anot="sublinhado"] { text-decoration: underline var(--upw-pen-2) .05em; text-underline-offset: .14em; }
.upw-note:not(.is-on) [data-anot="riscado"] { text-decoration: line-through var(--upw-pen) .05em; }
@media (max-width: 560px) { .anot { background-image: linear-gradient(rgba(39, 71, 208, .065) 1px, transparent 1px), linear-gradient(90deg, rgba(39, 71, 208, .065) 1px, transparent 1px); background-size: 30px 30px, 30px 30px; } }
