/* Shared by the All Stories pass (/all/) and the School Story Library (/library/) pages. Same look as the gift page. */
:root { --night: #15121f; --night-2: #1f1a2c; --cream: #fff4e2; --soft: #d9cbb6; --fire: #f2a93b; --ochre: #c4632b; color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--night); color: var(--cream); font: 17px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif; }
main { max-width: 760px; margin: 0 auto; padding: 28px 18px 60px; }
a { color: var(--fire); }
.top { margin: 0 0 22px; font-weight: 700; }
.top a { text-decoration: none; }
h1 { font: 700 clamp(30px, 6vw, 44px)/1.1 Georgia, serif; margin: 0 0 10px; }
h2 { font: 700 24px/1.2 Georgia, serif; margin: 32px 0 10px; }
.lead { color: var(--soft); margin: 0 0 22px; }
.offer { background: var(--night-2); border: 1px solid rgba(255,244,226,.12); border-radius: 18px; padding: 20px; }
.offer > div > b:first-child { color: var(--fire); font-size: 22px; }
.offer ul { padding-left: 20px; margin: 10px 0 8px; color: var(--soft); }
.btn { display: inline-block; border: 0; border-radius: 999px; padding: 14px 22px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; background: var(--fire); color: #2a1606; }
.btn.ghost { background: transparent; color: var(--cream); border: 2px solid rgba(255,244,226,.5); }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 4px; }
.note { color: var(--soft); font-size: 15px; }
.err { color: #ffb4a0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.redeem { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.redeem input { flex: 1 1 200px; min-width: 0; min-height: 48px; border-radius: 12px; border: 2px solid rgba(255,244,226,.25); padding: 0 12px; font: inherit; background: #fff; color: #26150a; }
.redeem button { min-height: 48px; padding: 0 18px; border-radius: 12px; border: 0; background: var(--cream); color: var(--night); font: inherit; font-weight: 700; cursor: pointer; }
.mini { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); margin: 22px 0; }
.mini a { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; font-weight: 700; font-size: 15px; }
.mini img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
/* the school code poster */
.poster { background: #fbf3e4; color: #26150a; border-radius: 18px; padding: 26px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.4); }
.poster .k { font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #9a3a14; font-size: 13px; }
.poster h2 { margin: 8px 0 6px; color: #26150a; }
.poster .code { font: 800 clamp(22px, 6.2vw, 40px)/1 Georgia, serif; letter-spacing: .04em; white-space: nowrap; color: #9a3a14; margin: 14px 0; }
.poster ol { text-align: left; max-width: 34em; margin: 10px auto 0; }
.poster .foot { font-size: 13px; color: #7a5a40; margin-top: 14px; }
@media print {
  body { background: #fff; }
  main > *:not(#posterwrap), #posterwrap .btns, #posterwrap .note { display: none !important; }
  .poster { box-shadow: none; border: 1px solid #d8c4a8; }
}
