@font-face {
  font-family: Timmi;
  src: url(assets/RifficBold.ttf) format('truetype');
  font-display: swap;
}
:root {
  --berry: #a52c62;
  --ink: #253c53;
  --orange: #ffac3d;
  --paper: #fffaf0;
  --display: Timmi, 'Trebuchet MS', system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 18px/1.55 'Trebuchet MS', Arial, sans-serif; }
a { color: #305778; }
.mast, .reward, .gate { width: min(100% - 2.5rem, 66rem); margin-inline: auto; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid #e7e0d8; }
.mast img { width: 9rem; display: block; }
.mast span { font: 1.15rem var(--display); color: var(--berry); }
h1, h2 { font-family: var(--display); text-wrap: balance; line-height: 1.03; margin: 0; }
h1 { font-size: clamp(2.65rem, 5.5vw, 4.65rem); color: var(--berry); }
h2 { font-size: clamp(2rem, 3.7vw, 3.1rem); color: var(--ink); }
p { margin: .8rem 0; }
.eyebrow { font: 1.08rem/1.25 var(--display); color: #465d79; margin: 0 0 .85rem; }
.welcome { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; margin: 1.8rem 0 0; background: var(--paper); }
.welcome-copy { align-self: center; padding: clamp(1.4rem, 3.8vw, 3rem); }
.welcome-copy p:not(.eyebrow) { max-width: 38ch; }
.signature { font-family: Georgia, serif; font-style: italic; font-size: 1.15rem; }
.hero-art { width: 100%; height: 100%; min-height: 22rem; object-fit: cover; clip-path: polygon(4% 0,100% 0,100% 100%,2% 100%,3% 87%,1% 75%,3% 62%,1.5% 49%,4% 31%,2% 20%); }
.activity { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.8rem,5vw,4.5rem); padding: clamp(2rem,4vw,3.6rem); }
.activity-copy p { max-width: 39ch; }
.certificate { border-bottom: 2px dashed #ded4c4; }
.certificate h2 { color: var(--berry); }
.prints { display: flex; align-items: flex-start; justify-content: center; gap: 1.15rem; padding: 1rem .65rem; background: repeating-linear-gradient(0deg,transparent 0 22px,#d5dfe457 22px 23px),#f2f6f6; }
.print { display: block; text-align: center; text-decoration: none; color: var(--ink); min-width: 0; max-width: 11.75rem; }
.print img { display: block; width: 100%; height: auto; transform: rotate(-2deg); box-shadow: 1px 4px 9px #283b452b; }
.print:nth-child(2) img { transform: rotate(2deg); }
.print span { display: inline-block; margin-top: .7rem; font-size: .9rem; font-weight: 700; text-decoration: underline; }
.mission { padding-bottom: 4rem; }
.game-shot { grid-column: 1; grid-row: 1; background: #fff3d9; padding: 1rem; display: grid; place-items: center; }
.game-shot img { width: auto; height: auto; max-width: 100%; max-height: 22rem; display: block; box-shadow: 0 3px 10px #62442022; }
.mission .activity-copy { grid-column: 2; }
.action, button { line-height: 1.25; font-family: inherit; font-size: 1rem; font-weight: 700; color: white; background: var(--berry); border: 0; border-radius: 5px; padding: .85rem 1.15rem; display: inline-block; text-decoration: none; cursor: pointer; }
.action small { font-size: .78rem; white-space: nowrap; padding-left: .3rem; }
.play, button { background: var(--orange); color: #302916; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid #245d8c; outline-offset: 4px; }
.action:hover, button:hover { filter: brightness(.93); }
.print:hover img, .game-shot:hover img { outline: 2px solid var(--berry); }
.gate { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); background: var(--paper); margin-block: 2rem; }
.gate-art { width: 100%; height: 100%; object-fit: cover; min-height: 20rem; }
.gate-copy { padding: clamp(1.4rem,4vw,3rem); }
.gate h1 { font-size: clamp(2.5rem,4vw,3.6rem); }
.gate label, .gate input { display: block; margin: .65rem 0; }
.gate input:not([type=hidden]) { width: 100%; font: inherit; padding: .55rem; border: 1px solid #918b80; border-radius: 4px; background: white; }
.book-links { border-top: 1px solid #d8cebf; padding-top: 1rem; }.book-links a { display:inline-block; padding:.25rem 0; }
@media (max-width: 700px) {
  .mast, .reward, .gate { width: min(100% - 1.5rem, 34rem); }
  .mast { padding-block: .8rem; }.mast img { width: 7.5rem; }
  .welcome, .activity, .gate { grid-template-columns: 1fr; }
  .welcome { margin-top: 1rem; }.hero-art, .gate-art { grid-row: 1; height: clamp(10rem,45vw,15rem); min-height: 0; clip-path: none; }
  .activity { padding: 2rem .65rem; gap: 1.25rem; }
  .game-shot, .mission .activity-copy { grid-column: auto; grid-row: auto; }
  .prints { gap: .8rem; }.mission { padding-bottom: 2.5rem; }
}
