/* Paper keepsakes shared with /start (copied from home.css). em-sized: set font-size to scale. */
.drawing{display:block;width:100%;height:auto;border:.45em solid var(--white);border-radius:.3em;box-shadow:var(--shadow-paper);background:#fff}

/* certificate */
.cert{width:22em;height:16em;padding:.9em;background:#fffaf0;border-radius:.25em;box-shadow:var(--shadow-paper);font-family:var(--display);line-height:1.2}
.cert__in{height:100%;display:flex;flex-direction:column;align-items:center;text-align:center;padding:1em 1.2em .8em;border:.16em solid #d6b25e;box-shadow:inset 0 0 0 .3em #fffaf0,inset 0 0 0 .42em #ead39a}
.cert__k{font-weight:800;font-size:.72em;letter-spacing:.28em;text-transform:uppercase;color:#a07d30}
.cert__t{font-family:var(--serif);font-weight:600;font-size:1.75em;line-height:1.05;color:#2d2a26;letter-spacing:-.01em}
.cert__to{font-family:var(--serif);font-style:italic;font-weight:500;font-size:.78em;color:#6b6256;margin-top:.45em}
.cert__n{font-family:var(--hand);font-size:2.2em;line-height:1.1;color:#1f3d7a}
.cert__for{font-weight:800;font-size:.8em;color:#2d2a26;border-top:.1em solid #d6b25e;padding:.3em .6em 0}
.cert__foot{margin-top:auto;align-self:stretch;display:flex;justify-content:space-between;align-items:flex-end}
.cert__sig{font-family:var(--hand);font-size:1.05em;color:#333;border-bottom:.08em solid #bbb;padding:0 .5em}
.cert__seal{width:2.3em;height:2.3em;border-radius:50%;background:radial-gradient(circle at 35% 30%,#ffe9a0,#e7ae2c 55%,#b97c10);box-shadow:0 0 0 .18em #f6dc8f,0 .15em .3em rgba(120,80,10,.35)}

/* medal */
.medal{display:block;width:9em;height:12.75em;filter:drop-shadow(0 .5em .7em rgba(90,60,20,.22))}

/* report card */
.report{width:18em;padding:1.1em 1.3em 1em;background:var(--white);border-radius:.6em;box-shadow:var(--shadow-paper);font-family:var(--display);line-height:1.25;color:#222}
.report__h{display:flex;flex-direction:column;padding-bottom:.55em;margin-bottom:.35em;border-bottom:.12em solid #1f3d7a}
.report__h b{font-weight:900;font-size:1.2em;letter-spacing:-.01em}
.report__h span{font-weight:600;font-size:.78em;color:#777}
.report dl{margin:0}
.report dl div{display:flex;justify-content:space-between;align-items:baseline;padding:.3em 0;border-bottom:.08em dashed #e4e0da}
.report dt{font-weight:700;font-size:.92em}
.report dd{margin:0;font-weight:900;font-size:1em;color:#2f8a46}
.report__note{font-family:var(--hand);font-size:1.12em;line-height:1.25;color:#c53a2c;margin-top:.55em}

/* homework */
.hw{width:19em;padding:1em 1.2em 1em 3em;border-radius:.3em;box-shadow:var(--shadow-paper);line-height:1.85em;background:linear-gradient(90deg,transparent 2.15em,#f2a7a7 2.15em,#f2a7a7 2.27em,transparent 2.27em),repeating-linear-gradient(180deg,#fff 0 1.73em,#d3e3f6 1.73em 1.85em);background-color:#fff;display:flex;flex-direction:column}
.hw__q{font-weight:800;font-size:.82em;line-height:2.25em;color:#333}
.hw__a{font-family:var(--hand);font-size:1.4em;line-height:1.32em;color:#1d2a52}
.hw__mark{align-self:flex-end;font-family:var(--hand);font-size:1.2em;line-height:1.5em;color:#d63b2f;transform:rotate(-6deg)}

/* birthday card */
.bday{width:19em;padding:2.9em 1.4em 1.2em;border-radius:.5em;box-shadow:var(--shadow-paper);background-color:#fff;background-image:radial-gradient(circle,#ffb3a7 .32em,transparent .34em),radial-gradient(circle,#9cd3ff .26em,transparent .28em),radial-gradient(circle,#ffd84d .22em,transparent .24em);background-size:2.4em 2.4em,2.4em 2.4em,2.4em 2.4em;background-position:.3em .4em,1.5em 1.2em,.9em 1.6em;background-repeat:repeat-x;display:flex;flex-direction:column}
.bday__h{font-weight:900;font-size:1.3em;line-height:1.1;letter-spacing:-.02em;color:#e2524a}
.bday__m{font-family:var(--hand);font-size:1.32em;line-height:1.35;color:#2a2a2a;margin-top:.45em}
.bday__s{align-self:flex-end;font-family:var(--hand);font-size:1.32em;color:#7a3fa0;margin-top:.3em}

/* "things they say" sticky note */
.said{position:relative;width:17em;padding:1.5em 1.3em 1.1em;background:#fff3a6;border-radius:.2em;box-shadow:var(--shadow-paper)}
.said::before{content:"";position:absolute;left:50%;top:-.7em;width:5.5em;height:1.5em;transform:translateX(-50%) rotate(-3deg);background:rgba(255,255,255,.6);box-shadow:0 .05em .2em rgba(0,0,0,.08)}
.said__q{display:block;font-family:var(--quote);font-style:italic;font-size:1.55em;line-height:1.22;color:#2b2412;letter-spacing:-.01em}
.said__m{display:block;font-weight:800;font-size:.72em;letter-spacing:.1em;text-transform:uppercase;color:rgba(0,0,0,.5);margin-top:.9em}

/* voice note */
.vn{display:inline-flex;align-items:center;gap:.7em;padding:.55em 1.1em .55em .55em;border-radius:999px;background:linear-gradient(160deg,#f3eaff,#dfcff8);color:#3b2a6b;box-shadow:0 .1em .2em rgba(0,0,0,.06),0 .8em 1.6em rgba(80,50,140,.16)}
.vn__pl{width:2.4em;height:2.4em;border-radius:50%;background:#1c1c1e;display:grid;place-items:center;flex:none}
.vn__pl svg{width:1em;height:1em;color:#fff;margin-left:.12em}
.vn__w{display:flex;align-items:center;gap:.26em;height:1.9em}
.vn__w i{display:block;width:.22em;border-radius:.2em;background:currentColor}
.vn__d{font-weight:800;font-size:.95em;font-family:var(--app)}

/* polaroid */
.snap{margin:0;width:13em;padding:.6em .6em 0;background:#fff;box-shadow:var(--shadow-paper);border-radius:.15em}
.snap__img{position:relative;display:block;aspect-ratio:1/1.05;background-size:cover;background-position:center;background-color:#eee}
.snap figcaption{font-family:var(--hand);font-size:1.15em;text-align:center;padding:.35em 0 .5em;color:#333;white-space:nowrap}

.play{position:absolute;left:.5em;bottom:.5em;display:inline-flex;align-items:center;gap:.25em;padding:.3em .6em .3em .45em;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font:700 .8em/1 var(--app)}
.play svg{width:.95em;height:.95em}

/* gallery tile: a square that scales whatever sits inside it */
.tile{position:relative;aspect-ratio:1;border-radius:.9em;overflow:hidden;background:#f1ebe4;display:grid;place-items:center;container-type:inline-size;list-style:none}
.tile .drawing{width:100%;height:100%;object-fit:cover;border:0;border-radius:0;box-shadow:none}
.tile--photo{background-size:cover;background-position:center}
.tile .play{font-size:calc(100cqi/9);left:6%;bottom:6%;padding:.35em}
.tile .play svg{width:1em;height:1em}
.tile .cert{font-size:calc(100cqi/24);box-shadow:0 .2em .5em rgba(0,0,0,.12)}
.tile .report{font-size:calc(100cqi/20);box-shadow:0 .2em .5em rgba(0,0,0,.12)}
.tile .hw{font-size:calc(100cqi/21.5);box-shadow:0 .2em .5em rgba(0,0,0,.12)}
.tile .bday{font-size:calc(100cqi/21.5);box-shadow:0 .2em .5em rgba(0,0,0,.12)}
.tile .said{font-size:calc(100cqi/19.5);box-shadow:none}
.tile .said::before{display:none}
.tile--said{background:#fff3a6}
.tile .medal{width:46%;height:auto}
.tile--medal{background:linear-gradient(160deg,#e6f3ff,#c8e0f6)}
.tile--bday{background:#ffe6e2}
.tile--cert{background:#fbf0d4}
.tile--report{background:#ece4fb}
.tile--hw{background:#ffeedd}
