/* Homepage section for the Journey into Mathematics picture books, in the style of the books' own page.
   Loaded only by the homepage. The display face is the books' title lettering (Sniglet, SIL OFL). */
@font-face{font-family:"Sniglet";src:url("fonts/sniglet-extrabold.ttf") format("truetype");font-weight:800;font-display:swap}
.journey-home-card{position:relative;background:url("assets/stars.png") 0 0/520px repeat,linear-gradient(#150f3d 0,#35256f 52%,#b24d8a 88%,#ffb86b 100%);border:0;animation:journey-home-drift 140s linear infinite}
@keyframes journey-home-drift{to{background-position:520px 260px,0 0}}
.journey-home-card>*{position:relative;z-index:1}
.journey-home-card::after{content:"";position:absolute;inset:0;z-index:2;border:1.5px solid #c9a25a;border-radius:inherit;box-shadow:inset 0 0 0 2px #1d1446;pointer-events:none}
.journey-home-covers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(10px,1.4vw,18px);align-content:center;padding:clamp(28px,4vw,52px) clamp(22px,3.2vw,44px) clamp(56px,6vw,80px);text-decoration:none}
.journey-home-covers img{display:block;width:100%;height:auto;aspect-ratio:1;border-radius:10px;box-shadow:0 14px 28px rgba(8,4,30,.55),0 0 0 2px rgba(255,255,255,.14);animation:journey-home-bob 5.5s ease-in-out infinite;animation-delay:calc(var(--i) * -.9s);transition:transform .2s}
.journey-home-covers:hover img{animation-play-state:paused}
.journey-home-covers img:hover{transform:translateY(-10px) scale(1.06) rotate(-2deg)}
@keyframes journey-home-bob{0%,100%{transform:translateY(0) rotate(-1.2deg)}50%{transform:translateY(-12px) rotate(1.2deg)}}
.journey-home-card .feature-copy{padding-bottom:clamp(56px,6vw,80px)}
.journey-home-card .feature-copy>p.journey-home-kicker{display:inline-block;margin:0 0 18px;padding:6px 14px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff!important;font-size:.78rem;font-weight:800;letter-spacing:.06em}
.journey-home-card h2{margin:0;font:inherit;letter-spacing:0;white-space:normal}
.journey-home-small,.journey-home-big,.journey-home-with{display:block}
.journey-home-small{color:#fff;font-weight:800;font-size:clamp(1.25rem,2.2vw,1.7rem);line-height:1.1}
.journey-home-big{margin:.04em 0 .1em;color:#ffd166;font-family:"Sniglet","Arial Rounded MT Bold",ui-rounded,system-ui,sans-serif;font-weight:800;font-size:clamp(2.4rem,4.6vw,3.9rem);line-height:1.02;text-shadow:.055em .055em 0 #0d0828}
.journey-home-with{color:#8fe3ff;font-weight:800;font-size:clamp(1.05rem,1.8vw,1.35rem)}
.journey-home-card .feature-copy>p.journey-home-description{max-width:31em;margin:20px 0 26px;color:#f1ecff!important;font-size:1rem;line-height:1.65;font-weight:500}
.journey-home-button{display:inline-flex;align-items:center;min-height:50px;padding:0 28px;border-radius:999px;background:#ffd166;color:#241a52;font-weight:800;font-size:1rem;text-decoration:none;box-shadow:0 5px 0 #c8962b,0 12px 24px rgba(0,0,0,.25);transition:transform .15s}
.journey-home-button:hover{transform:translateY(-2px)}
.journey-home-hill{position:absolute;z-index:0;left:0;right:0;bottom:-1px;width:100%;height:clamp(44px,6vw,74px);fill:#241452;pointer-events:none}
@media(prefers-reduced-motion:reduce){.journey-home-card,.journey-home-covers img{animation:none}.journey-home-covers img,.journey-home-button{transition:none}}
