/* Not My Event: the look of "Please Stop Replying — Classic Card" (scripts/envelope-reply.mjs; the page is written by scripts/make-envelope-cards.mjs).
   Cream paper, black type, one orange-red notification badge, and a border of tiny chat bubbles. An editorial page, not a phone screen.
   The paper and the envelope are solid colours (never see-through); the envelope's decorations live inside its front and leave with it. */
body.d-replystop { --bg: #2A2C33; --env-back: #D9CFB6; --env-l: #F3ECDA; --env-r: #EDE5D0; --env-b: #FBF6EA; --flap: #E7DFCC; --flap-in: #C9BFA4; --edge: rgba(21, 22, 26, .55);
  --paper: #FBF6EA; --ink: #15161A; --ink-soft: #5A5E6B; --accent: #FF4A1C; --gold: #FF4A1C; --gold-l: #FBF6EA; --gold-d: #A32A0C;
  --display: "Alfa Slab One", Rockwell, "Arial Black", serif; --body: "Familjen Grotesk", system-ui, sans-serif; --script: "Newsreader", Georgia, serif; --mono: "DM Mono", "Courier New", monospace; --t1: 11; --t2: 9.2; --t3: 7.6; color: #FBF6EA; }
.d-replystop .bg { background: radial-gradient(ellipse 80% 60% at 50% 40%, #3A3D46 0, #2A2C33 60%, #1B1D23 100%); }
.d-replystop .bg i { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); margin: calc(var(--s) / -2); border-radius: 50%; background: radial-gradient(circle, rgba(127, 183, 255, .22), transparent 66%); animation: rs-glow var(--d) ease-in-out infinite; }
@keyframes rs-glow { 50% { opacity: .45; } }
.d-replystop .tap-hint, .d-replystop .quiet { color: #FBF6EA; font-family: var(--body); }

/* the envelope: one tidy notification, and a red badge for a seal */
.d-replystop .seal { background: #FF4A1C; box-shadow: 0 0 0 calc(var(--ew) * .01) #15161A, 0 3px 10px rgba(0, 0, 0, .45); animation: rs-badge 1.6s ease-in-out infinite alternate; }
@keyframes rs-badge { from { transform: scale(1); } to { transform: scale(1.07); } }
.d-replystop .rs-one { font-family: var(--display); font-weight: 800; font-size: calc(var(--ew) * .1); line-height: 1; color: #fff; }
.d-replystop .rs-note { position: absolute; z-index: 2; left: 9%; right: 9%; bottom: 7%; display: flex; align-items: center; justify-content: center; gap: calc(var(--ew) * .02); padding: calc(var(--ew) * .016) calc(var(--ew) * .02); border-radius: calc(var(--ew) * .05); background: #fff; color: #15161A; border: calc(var(--ew) * .006) solid #15161A; font-family: var(--body); font-weight: 700; font-size: calc(var(--ew) * .037); }
.d-replystop .rs-note b { flex: none; display: grid; place-items: center; width: calc(var(--ew) * .058); height: calc(var(--ew) * .058); border-radius: 50%; background: #FF4A1C; color: #fff; font-size: calc(var(--ew) * .034); }
.d-replystop .go .rs-note { animation: rs-away .4s ease-in forwards; }
@keyframes rs-away { to { opacity: 0; } }

/* the card: an editorial page inside a border of tiny chat bubbles. Wide margins, so nothing sits on a fold or at the edge */
.d-replystop .card { background: #FBF6EA; color: var(--ink); border-radius: calc(var(--u) * 1.2);
  box-shadow: 0 0 0 calc(var(--u) * .8) #15161A, 0 calc(var(--u) * 10) calc(var(--u) * 20) rgba(0, 0, 0, .5); }
.d-replystop .card::before { content: ""; position: absolute; inset: calc(var(--u) * 2); pointer-events: none; border: calc(var(--u) * 2.6) solid transparent;
  border-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%2315161A' stroke-width='2.4'%3E%3Cpath d='M5 3h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3H9l-4 3v-3a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z'/%3E%3Cpath d='M45 3h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-6l-4 3v-3a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z'/%3E%3Cpath d='M5 43h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3H9l-4 3v-3a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3z'/%3E%3Cpath d='M45 43h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-6l-4 3v-3a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3z'/%3E%3Cpath d='M25 3h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-6l-4 3v-3a3 3 0 0 1-3-3V6a3 3 0 0 1 3-3z'/%3E%3Cpath d='M25 43h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-6l-4 3v-3a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3z'/%3E%3Cpath d='M5 23h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3H9l-4 3v-3a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3z'/%3E%3Cpath d='M45 23h10a3 3 0 0 1 3 3v4a3 3 0 0 1-3 3h-6l-4 3v-3a3 3 0 0 1-3-3v-4a3 3 0 0 1 3-3z'/%3E%3C/g%3E%3C/svg%3E") 20 round; }
.d-replystop .card-in { padding: calc(var(--u) * 8.5) calc(var(--u) * 9.5) calc(var(--u) * 7.5); gap: calc(var(--u) * 1.5); justify-content: flex-start; align-items: stretch; text-align: left; }
.d-replystop .rs-head { font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 11.2); line-height: .92; letter-spacing: -.02em; text-transform: uppercase; color: var(--ink); }
.d-replystop .rs-head em { display: block; font-style: normal; color: #FF4A1C; }
.d-replystop .kicker { font-family: var(--body); color: var(--ink-soft); }
.d-replystop .rs-sub { font-weight: 700; font-size: calc(var(--u) * 3.9); line-height: 1.3; color: var(--ink); }
.d-replystop .title { margin-top: calc(var(--u) * 1); padding-top: calc(var(--u) * 2); border-top: calc(var(--u) * .7) solid var(--ink); font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 7.6); line-height: 1; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; text-align: left; }
.d-replystop .facts { display: grid; gap: calc(var(--u) * .8); }
.d-replystop .when { font-family: var(--display); font-weight: 800; font-size: calc(var(--u) * 5.4); line-height: 1.1; color: var(--ink); }
.d-replystop .where { font-family: var(--body); font-weight: 700; font-size: calc(var(--u) * 3.9); line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.d-replystop .note { font-family: var(--body); color: var(--ink-soft); font-size: calc(var(--u) * 3.6); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; }
.d-replystop .hope { margin-top: auto; align-self: flex-start; padding: calc(var(--u) * 1.3) calc(var(--u) * 2.6); border-radius: calc(var(--u) * 3.4) calc(var(--u) * 3.4) calc(var(--u) * 3.4) calc(var(--u) * .8); background: #15161A; color: #FBF6EA; font-family: var(--body); font-weight: 900; font-size: calc(var(--u) * 3.3); line-height: 1.2; }
.d-replystop .by { font-size: calc(var(--u) * 3.2); text-align: left; }
/* the reply pills under the card wear the design's colours */
body.d-replystop { --rp-bg: #FF4A1C; --rp-fg: #fff; --rp-edge: #15161A; }
@media (prefers-reduced-motion: reduce) { .d-replystop .seal, .d-replystop .bg i { animation: none; } }
/* the lettering: Alfa Slab One (a front page that has had enough), Newsreader italic (the sigh under it), DM Mono (the facts, set like a receipt, because nobody read them) */
.d-replystop .rs-head { font-weight: 400; font-size: calc(var(--u) * 10.4); line-height: .96; letter-spacing: 0; }
.d-replystop .rs-sub { font-family: var(--script); font-style: italic; font-weight: 500; font-size: calc(var(--u) * 4.5); line-height: 1.2; }
.d-replystop .title { font-weight: 400; font-size: calc(var(--u) * 6.8); letter-spacing: 0; }
.d-replystop .when { font-family: var(--mono); font-weight: 500; font-size: calc(var(--u) * 4.2); line-height: 1.2; }
.d-replystop .where, .d-replystop .note { font-family: var(--mono); font-weight: 400; font-size: calc(var(--u) * 3.4); }
.d-replystop .rs-one { font-weight: 400; } .d-replystop .rs-note { font-family: var(--mono); font-weight: 500; font-size: calc(var(--ew) * .033); }
.d-replystop .hope { font-weight: 700; }
