/* ============================================================================
   The Rooted Journal - the newsletter slip, round 3 ("instant clarity").
   The slip is a NOTE-SCRAP (assets/css/scrap.css: warm tan torn paper DARKER
   than the page, scorched rim, two wide corner tapes, tilt, paper shadow).
   Approved copy verbatim, restructured so
   a stranger grasps "email signup for a weekly page" in 2 seconds:
     1. tiny hand-drawn envelope doodle + small typewriter caps label
     2. ONE dominant handwritten line
     3. the second line smaller and quieter (serif)
     4. a clearly separated fill-in row: sentence + generous underlined blank
        + the torn-tag submit (thread + tape, darker paper = the button)
     5. the pencil line, small and faint
   Shared by the journey's mailbox station and follow.html (same markup/ids).
   ============================================================================ */
.slip { margin-top: 16px; max-width: 400px; pointer-events: auto; }
.slip .note-scrap__paper { padding: 20px 22px 16px; }

/* 1 - the label row: envelope doodle + typewriter caps */
.slip__label {
  display: flex; align-items: center; gap: 9px;
  margin: 0 0 12px;
}
.slip__envelope {
  flex: 0 0 auto; width: 30px; height: 22px;
  transform: rotate(-4deg); opacity: 0.85;
}
.slip__head {
  font-family: var(--font-type); font-weight: 700;
  font-size: 0.7rem; letter-spacing: 0.17em; color: #3A2B18;
}

/* 2 - the dominant line: Rooty's hand, large and dark */
.slip__line--main {
  margin: 0 0 6px; font-family: var(--font-hand); font-weight: 600;
  font-size: clamp(1.5rem, 2.1vw, 1.72rem); line-height: 1.22; color: #33230F;
  transform: rotate(-0.5deg); transform-origin: left center;
}
/* 3 - the second line: smaller, quieter, a different voice */
.slip__line--sub {
  margin: 0 0 4px; font-family: var(--font-serif); font-style: italic;
  font-size: 0.95rem; line-height: 1.45; color: #4A3722;
}

/* 4 - the fill-in row, clearly separated by a faint dashed pencil rule */
.slip__form {
  margin-top: 14px; padding-top: 13px;
  border-top: 1px dashed rgba(74, 55, 34, 0.55);
}
.slip__sentence {
  display: block; font-family: var(--font-type); font-weight: 700;
  font-size: 0.86rem; letter-spacing: 0.03em; color: #3A2B18;
  margin: 0 0 2px;
}
.slip__blank {
  display: block; width: 100%; box-sizing: border-box;
  margin: 0 0 12px; padding: 3px 4px 5px;
  background: transparent; border: 0; border-radius: 0;
  border-bottom: 2px solid rgba(51, 35, 15, 0.68);   /* the obvious rule line */
  font-family: var(--font-hand); font-weight: 600;
  font-size: 1.4rem; color: #33230F;
  outline: none;
}
.slip__blank::placeholder {
  color: rgba(74, 55, 34, 0.75); font-style: italic;
  font-family: var(--font-serif); font-size: 0.95rem;
}
.slip__blank:focus {
  border-bottom-color: #33230F;
  background: rgba(123, 139, 116, 0.14);
}
.slip__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* the submit: a paper TAG on a thread, held by its own bit of tape -
   slightly darker paper than the slip so it reads as the button */
.slip__tagwrap { display: inline-flex; align-items: center; }
.slip__thread { width: 38px; height: 17px; margin-right: -3px; opacity: 0.85; flex: 0 0 auto; }
.slip__tag {
  font-family: var(--font-type); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.05em;
  color: #2A1D0D; background: linear-gradient(176deg, #B08A52, #A17C45);
  border: 0; cursor: pointer;
  padding: 10px 16px 10px 22px;
  clip-path: polygon(0 50%, 9% 8%, 100% 0, 97% 100%, 9% 92%);
  filter: drop-shadow(1px 2px 3px rgba(56, 38, 18, 0.34));
  transform: rotate(2deg); position: relative;
}
.slip__tag::before {              /* punched hole the thread passes through */
  content: ""; position: absolute; left: 10px; top: 50%; margin-top: -3.5px;
  width: 7px; height: 7px; border-radius: 50%;
  background: #D3B183; box-shadow: inset 0 0 0 1.5px #4A3722;
}
.slip__tag::after {               /* the tag's own bit of aged tape */
  content: ""; position: absolute; top: -6px; right: 9%;
  width: 34px; height: 11px;
  background: linear-gradient(101deg, rgba(209, 190, 144, 0.45),
                                      rgba(198, 177, 129, 0.6) 50%,
                                      rgba(209, 190, 144, 0.42));
  clip-path: polygon(0 18%, 4% 0, 96% 6%, 100% 30%, 97% 80%, 90% 100%, 6% 94%, 1% 66%);
  transform: rotate(4deg);
}
.slip__tag:hover { transform: rotate(0.6deg); }
.slip__tag:disabled { opacity: 0.55; cursor: default; }

/* 5 - the pencil line: small and faint */
.slip__pencil {
  margin: 12px 0 0; font-family: var(--font-hand); font-weight: 500;
  font-size: 1rem; color: #3A2B18; opacity: 0.68; transform: rotate(-0.6deg);
}

.slip__error {
  margin: 12px 0 0; font-family: var(--font-hand); font-weight: 600;
  font-size: 1.18rem; color: #5e2c1c; transform: rotate(-0.5deg);
}
.slip__success {
  margin: 12px 0 0; font-family: var(--font-hand); font-weight: 600;
  font-size: 1.3rem; color: #2A1D0D; transform: rotate(-0.8deg);
}
.slip__sprout { width: 15px; height: 18px; vertical-align: -3px; margin-left: 3px; }
.slip.is-done .slip__form { opacity: 0.35; pointer-events: none; }
