/* Not My Event: the look of "The Great Plate Debate — Classic Card" (scripts/envelope-plate.mjs; the page is written by scripts/make-envelope-cards.mjs).
   An official dinner evaluation notice: kraft paper, wine, gold, cream. A printed notice with one drawn dinner plate; nothing to operate.
   The lettering: Ranchers (a fat diner-menu face: the headline and the day), Sometype Mono (the notice and the details), Sansita Swashed (the warm lines),
   Sniglet (the examiner's notes, inside the plate's own picture). Everything is centred; the margins are wide, so nothing sits at an edge or on a fold.
   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-plate { --bg: #4A0E18; --env-back: #A8905E; --env-l: #C9B487; --env-r: #C2AC7E; --env-b: #D6C296; --flap: #BDA677; --flap-in: #94804F; --edge: rgba(58, 34, 20, .5);
  --paper: #FFF8E7; --ink: #3A2214; --ink-soft: #6B5340; --accent: #7A1626; --gold: #E8B93C; --gold-l: #FFE38A; --gold-d: #9A7417;
  --display: "Ranchers", "Arial Black", Impact, sans-serif; --body: "Sometype Mono", "Courier New", monospace; --script: "Sansita Swashed", Georgia, serif; --t1: 11; --t2: 9.2; --t3: 7.6; color: #FFE38A; }
.d-plate .bg { background: radial-gradient(ellipse 80% 60% at 50% 40%, #7A1626 0, #4A0E18 60%, #1E060B 100%); }
.d-plate .tap-hint, .d-plate .quiet { color: var(--gold-l); font-family: var(--body); font-weight: 700; }

/* the envelope: the department's stamp pressed into the seal, a wine band that says what is inside, three dishes along the foot */
.d-plate .seal { background: #EBDDB8; box-shadow: 0 0 0 calc(var(--ew) * .008) #7A1626, inset 0 2px 3px rgba(255, 255, 255, .7), inset 0 -2px 3px rgba(90, 60, 30, .45), 0 3px 8px rgba(0, 0, 0, .35); }
@keyframes pd-press { 50% { transform: scale(1.06) rotate(-4deg); } }
/* the stamp is the thing to tap: it presses itself, gently, until it is tapped (the picture inside moves, so the seal still flies off with the envelope) */
.d-plate .seal .pd-emblem { width: 84%; height: auto; display: block; animation: pd-press 2.6s ease-in-out infinite; }
.d-plate .pd-band { position: absolute; z-index: 2; left: 0; right: 0; top: 9%; padding: calc(var(--ew) * .012) 0; text-align: center; background: #7A1626; color: #FFF8E7; font-family: var(--body); font-weight: 700; font-size: calc(var(--ew) * .03); letter-spacing: .1em; text-transform: uppercase; }
.d-plate .pd-food { position: absolute; z-index: 2; left: 0; right: 0; bottom: 3%; display: flex; justify-content: center; gap: calc(var(--ew) * .03); }
.d-plate .pd-food svg { display: block; width: calc(var(--ew) * .13); height: auto; }
.d-plate .go .pd-band, .d-plate .go .pd-food { animation: pd-away .4s ease-in forwards; }
@keyframes pd-away { to { opacity: 0; } }

/* the card: a printed notice. A wine rule and a gold rule inside the edge */
.d-plate .card { background: #FFF8E7; color: var(--ink); border-radius: calc(var(--u) * .6);
  box-shadow: 0 0 0 calc(var(--u) * .7) #7A1626, 0 calc(var(--u) * 10) calc(var(--u) * 20) rgba(0, 0, 0, .5); }
.d-plate .card::before { content: ""; position: absolute; inset: calc(var(--u) * 2.4); border: calc(var(--u) * .3) solid #E8B93C; pointer-events: none; }
.d-plate .card-in { padding: calc(var(--u) * 6) calc(var(--u) * 9) calc(var(--u) * 5.6); gap: calc(var(--u) * 1.2); justify-content: flex-start; }
.d-plate .pd-dept { font-family: var(--body); font-weight: 700; font-size: calc(var(--u) * 3); letter-spacing: .16em; text-transform: uppercase; color: #FFF8E7; background: #7A1626; padding: calc(var(--u) * .5) calc(var(--u) * 2.4); }
.d-plate .pd-head { font-family: var(--display); font-size: calc(var(--u) * 7.2); line-height: 1; text-transform: uppercase; color: var(--ink); text-wrap: balance; }
.d-plate .pd-plate { flex: none; display: block; width: calc(var(--u) * 46); height: auto; overflow: visible; }
.d-plate .kicker { font-family: var(--body); color: var(--ink-soft); }
.d-plate .pd-line { font-weight: 500; font-size: calc(var(--u) * 3.1); line-height: 1.3; color: var(--ink); text-wrap: balance; }
.d-plate .pd-inv { font-family: var(--script); font-style: italic; font-weight: 700; font-size: calc(var(--u) * 4.6); line-height: 1; color: #7A1626; }
.d-plate .title { font-family: var(--display); font-weight: 400; font-size: calc(var(--u) * 9.4); line-height: 1; color: #7A1626; overflow-wrap: anywhere; text-wrap: balance; }
.d-plate .facts { display: grid; gap: calc(var(--u) * .7); justify-items: center; padding: calc(var(--u) * 1.3) 0; border-top: calc(var(--u) * .3) dashed var(--ink); border-bottom: calc(var(--u) * .3) dashed var(--ink); align-self: stretch; }
.d-plate .when, .d-plate .where { font-family: var(--body); font-weight: 700; font-size: calc(var(--u) * 3.5); line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
.d-plate .note { font-family: var(--script); font-style: italic; font-weight: 500; color: var(--ink-soft); font-size: calc(var(--u) * 3.8); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.d-plate .hope { margin-top: auto; font-family: var(--display); font-size: calc(var(--u) * 5.4); line-height: 1; color: var(--ink); }
.d-plate .by { font-size: calc(var(--u) * 2.9); }
/* one gentle movement, and only once the card is out: the examiner's arrows nudge toward the plate. The card reads the same with no movement at all */
.d-plate .pd-arrow { animation: pd-nudge 2.4s ease-in-out infinite alternate; }
@keyframes pd-nudge { to { transform: translate(1.5px, 1.5px); } }
/* the reply pills under the card wear the design's colours */
body.d-plate { --rp-bg: #E8B93C; --rp-fg: #3A2214; --rp-edge: #3A2214; }
@media (prefers-reduced-motion: reduce) { .d-plate .seal .pd-emblem, .d-plate .pd-arrow { animation: none; } }
