/* The mail slot: a padded mailer and the slip that goes in it. Same single theme as the rest of the foundry, no dark mode switch. */
main { gap: 18px; }
.back { position: fixed; left: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--gold); background: #4e1230; z-index: 5; }
.back::after { content: ""; position: absolute; left: 12px; top: 10px; width: 9px; height: 9px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); }
.back:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

/* the mailer: kraft paper, a tear strip along the flap, a stamp, the label */
.mailer { position: relative; width: min(100%, 560px); margin-top: 64px; padding: 54px 22px 22px; border-radius: 8px; border: 4px solid #0b070d;
  background: linear-gradient(180deg, #b8905a, #9b7446 70%, #8a6640); box-shadow: 0 22px 50px #000b, inset 0 2px 0 #ffffff33; transform: rotate(-1deg); }
.flap { position: absolute; left: -4px; right: -4px; top: -4px; height: 40px; border: 4px solid #0b070d; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #c9a06a, #b8905a); }
.flap .tear { position: absolute; left: 0; right: 0; bottom: -3px; height: 0; border-top: 3px dashed #0b070d88; }
.stamp { position: absolute; right: 18px; top: 50px; width: 46px; height: 56px; padding: 4px; background: var(--blush); border: 2px dotted #0b070d; }
.stamp i { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #ffe9a8, var(--gold) 55%, #7c5f1f); border: 1px solid #0b070d; }
.address { display: grid; gap: 2px; width: min(72%, 330px); margin: 8px 0 0; padding: 12px 14px; background: var(--blush); color: var(--ink); border: 2px solid #0b070d;
  font: 17px/1.3 'Crimson Pro',Georgia,serif; box-shadow: 2px 3px 0 #0b070d55; transform: rotate(.8deg); }
.address b { font-size: 21px; }
.address span { font-style: italic; font-family: Lora,Georgia,serif; font-size: 15px; }
.fragile { position: absolute; right: 22px; bottom: 14px; padding: 2px 8px; border: 2px solid #5e0c2c; color: #5e0c2c; font: bold 12px/1.4 'Crimson Pro',Georgia,serif; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-6deg); opacity: .85; }

/* the slip: paper, the words and the form */
.slip { width: min(100%, 560px); padding: 20px 18px 22px; background: #f3e6d3; color: #2a1c2e; border: 3px solid #0b070d; border-radius: 4px; box-shadow: 0 14px 34px #000a; }
.slip .about { margin: 0 0 16px; font: 17px/1.45 'Crimson Pro',Georgia,serif; }
.slip label { display: block; margin: 0 0 12px; font: 15px 'Crimson Pro',Georgia,serif; }
.slip input[type="text"], .slip input[type="email"], .slip textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 2px solid #2a1c2e; border-radius: 4px; background: #fffdf6; color: #2a1c2e; font: 16px/1.4 'Crimson Pro',Georgia,serif; }
.slip textarea { resize: vertical; }
.slip input[type="file"] { display: block; width: 100%; margin-top: 6px; padding: 10px; border: 2px dashed #2a1c2e; border-radius: 4px; background: #fffdf6; color: #2a1c2e; font: 15px 'Crimson Pro',Georgia,serif; }
.slip .fine { display: block; margin-top: 4px; font: 13px/1.5 'Crimson Pro',Georgia,serif; opacity: .85; }
.list { list-style: none; margin: -4px 0 12px; padding: 0; display: grid; gap: 3px; font: 14px/1.4 'Crimson Pro',Georgia,serif; }
.list li { display: flex; justify-content: space-between; gap: 10px; padding: 3px 8px; border-radius: 3px; background: #fffdf6; border: 1px solid #2a1c2e44; }
.list li.through { background: #cfe8d5; }
.list li.stuck { background: #f7cfd8; }
.list li.too { background: #f7cfd8; text-decoration: line-through; }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { margin: 4px 0 0; flex: none; width: 18px; height: 18px; }
.web { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }   /* a field only robots fill in */
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.slip button { padding: 10px 16px; border: 3px solid #2a1c2e; border-radius: 8px; background: #2a1c2e; color: #ffe9a8; font: bold 16px 'Crimson Pro',Georgia,serif; cursor: pointer; }
.slip button:hover, .slip button:focus-visible { background: #4e1230; outline: none; box-shadow: 0 0 0 3px var(--teal); }
.slip button[disabled] { opacity: .6; cursor: wait; }
.said { font: italic 15px/1.4 Lora,Georgia,serif; color: #5e0c2c; }
progress { display: block; width: 100%; height: 10px; margin-top: 12px; accent-color: #b3123f; }
progress[hidden] { display: none; }
.foot { margin: 16px 0 0; }
.slip.sent form { display: none; }
.slip .thanks { margin: 0; font: 18px/1.45 'Crimson Pro',Georgia,serif; }
.slip .thanks + .thanks { margin-top: 10px; }

.doors { display: flex; justify-content: center; }
.door { position: relative; display: block; width: 46px; height: 72px; border-radius: 23px 23px 3px 3px; border: 3px solid var(--gold); background: linear-gradient(180deg, #5b2a4a, #3b1c33); }
.door .knob { position: absolute; right: 7px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.door:hover, .door:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

@media (max-width: 460px) { .mailer { padding: 50px 14px 20px; } .address { width: 78%; } .stamp { width: 38px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .slip button { transition: none; } }
