/* Waterloo Atlas homepage. Keep complete poster artwork visible. */
.atlas-home{--home-sage:#edf1ea;--home-sand:#f4efe5}
.atlas-home h1,.atlas-home h2,.atlas-home h3{color:var(--navy)}
.atlas-home h2{font-size:clamp(1.8rem,3vw,2.75rem);line-height:1.14;margin:0 0 22px}
.atlas-home .eyebrow{font-size:.72rem;letter-spacing:.14em;line-height:1.6;color:#536459;margin:0 0 22px}
.atlas-home p{line-height:1.7}
.atlas-home-hero{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(36px,6vw,96px);align-items:center;padding-top:58px;padding-bottom:64px}
.atlas-home h1{font-size:clamp(2.8rem,5.5vw,5rem);line-height:1.04;letter-spacing:-.055em;margin:0 0 26px}
.atlas-home-lede{font-size:1.13rem;max-width:440px;color:#53616a}
.atlas-home-actions{display:flex;flex-wrap:wrap;align-items:center;gap:22px;margin-top:30px}
.atlas-home .button{font-size:.9rem;padding:14px 20px;display:inline-flex;align-items:center;justify-content:center;gap:20px;text-align:center}
.atlas-text-link{font-size:.9rem;font-weight:600;text-underline-offset:5px}
.atlas-home-note{font-size:.76rem;color:var(--muted);margin-top:22px}
.atlas-home-art{margin:0;background:var(--home-sand);padding:30px 38px 18px;border-radius:4px}
.atlas-home-art img{display:block;width:100%;height:440px;object-fit:contain;filter:drop-shadow(0 12px 12px #30352825)}
.atlas-home-art figcaption{display:flex;justify-content:space-between;gap:12px;margin-top:22px;font-size:.68rem;color:#62675d}
.atlas-home-about{display:grid;grid-template-columns:1fr 1.4fr;gap:60px;align-items:center;border-top:1px solid var(--line);padding-top:42px;padding-bottom:48px}
.atlas-home-about h2{font-size:1.65rem}.atlas-home-about p{margin:0 0 18px;max-width:630px}
.atlas-home-custom{display:grid;grid-template-columns:1fr 1.1fr;align-items:center;gap:clamp(32px,6vw,88px);background:var(--home-sage);padding:42px 52px;border-radius:4px;margin-top:18px;margin-bottom:80px}
.atlas-custom-art{display:block;text-align:center}.atlas-custom-art img{width:100%;height:360px;object-fit:contain;filter:drop-shadow(0 10px 12px #1c383025)}
.atlas-home-custom p:not(.eyebrow):not(.atlas-home-note){max-width:440px;margin-bottom:26px}
.atlas-section-heading{display:flex;justify-content:space-between;align-items:end;gap:24px}.atlas-section-heading h2{margin-bottom:0}.atlas-section-heading .eyebrow{margin-bottom:12px}
.atlas-home-finished{--poster-height:210px;padding-bottom:40px}
.atlas-home-finished .atlas-section-heading{margin-bottom:22px}
.atlas-home-finished h2{font-size:clamp(1.45rem,3vw,2rem);line-height:1.2}
.atlas-section-description{color:var(--muted);font-size:.9rem;white-space:nowrap;margin:8px 0 0}
.atlas-finished-card{text-decoration:none;color:inherit;display:block}.atlas-finished-card:hover h3{text-decoration:underline;text-underline-offset:5px}

.atlas-card-caption{display:flex;justify-content:space-between;gap:12px;padding:14px 0 8px}.atlas-card-caption p{font-size:.78rem;margin:0;color:var(--muted)}body .atlas-card-caption h3{font-size:1rem;margin:3px 0;line-height:1.4}.atlas-card-caption>span{font-size:1rem}
.atlas-home-credits{font-size:.66rem;color:var(--muted);margin:0;padding:20px 0 28px}
.atlas-home-community{background:var(--home-sage);padding:64px 0}.atlas-community-inner{display:grid;grid-template-columns:1fr 1.25fr;gap:70px}.atlas-community-inner p{margin:0 0 20px}.atlas-community-belief{font-size:inherit}.atlas-community-inner .button{margin-top:10px}
.atlas-home a:focus-visible{outline:3px solid #146b5d;outline-offset:5px}
@media(min-width:1500px){.atlas-home-hero{padding-top:72px;padding-bottom:80px}}
@media(max-width:760px){.atlas-home-hero{grid-template-columns:1fr;gap:30px;padding-top:38px;padding-bottom:38px}.atlas-home h1{font-size:3.3rem}.atlas-home-art{padding:26px 24px 18px}.atlas-home-art img{height:380px}.atlas-home-about,.atlas-community-inner{grid-template-columns:1fr;gap:10px}.atlas-home-about{padding-top:32px;padding-bottom:32px}.atlas-home-custom{grid-template-columns:1fr;padding:30px 24px;gap:28px;margin-top:10px;margin-bottom:48px}.atlas-custom-art img{height:320px}.atlas-section-heading{align-items:start;flex-direction:column;gap:15px}.atlas-home-community{padding:40px 0}.atlas-home .button{max-width:100%}}
@media(prefers-reduced-motion:no-preference){.atlas-finished-card img{transition:transform .2s ease}.atlas-finished-card:hover img{transform:translateY(-4px)}}

/* One composed view of the six original children's map themes. */
.atlas-home-kids{margin:0;min-width:0}
.atlas-home-kids-view{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:26px;background:var(--home-sand);border-radius:4px}
.atlas-home-kids-view img{display:block;width:100%;height:auto;aspect-ratio:400/534;object-fit:contain;box-shadow:0 5px 10px #27334420}
.atlas-home-kids figcaption{margin-top:14px;font-size:.75rem;line-height:1.6;color:var(--muted)}
.atlas-home-kids figcaption strong{color:var(--ink);font-weight:600}
@media(max-width:760px){.atlas-home-about{gap:26px}.atlas-home-kids-view{gap:10px;padding:18px}}

/* Overlapping prints on a transparent surface, with the original artwork intact. */
.atlas-home-stack{background:transparent;padding:0;min-width:0}
.atlas-map-stack{display:block;position:relative;width:100%;aspect-ratio:.78;isolation:isolate}
.atlas-map-stack .atlas-paper{position:absolute;display:block;width:54%;padding:4px;background:#fff;border:0;box-shadow:0 2px 4px #17253518,0 12px 20px -10px #17253540}
.atlas-map-stack .atlas-paper img{position:static;display:block;width:100%;height:auto;object-fit:contain;filter:none}
.atlas-paper::after{content:none}
.atlas-map-stack .atlas-stack-kids{left:0%;top:3%;transform:rotate(-12deg);z-index:1}
.atlas-map-stack .atlas-stack-town{left:46%;top:12%;transform:rotate(9deg);z-index:2}
.atlas-map-stack .atlas-stack-park{width:54%;left:22%;top:43%;transform:rotate(-5deg);z-index:3}
.atlas-home-stack figcaption{display:block;text-align:center;margin-top:54px}
@media(max-width:760px){.atlas-home-stack{padding:0;max-width:500px;width:100%;justify-self:center}.atlas-map-stack img{height:auto}}

/* Each featured card carries its copy and artwork together. */
.atlas-home-hero.atlas-hero-visual{display:block;position:relative;padding-top:32px;padding-bottom:32px;min-width:0}
.atlas-hero-window{display:grid;overflow:hidden;margin:0 40px}
.atlas-hero-slide{grid-area:1/1;display:grid;grid-template-columns:.9fr 1.25fr;gap:40px;align-items:center;min-width:0;transform:translateX(var(--slide-offset,0%));transition:transform .65s ease,opacity .65s ease;opacity:1}
.atlas-hero-slide[aria-hidden="true"]{pointer-events:none;opacity:0;visibility:hidden}
.atlas-hero-slide .atlas-hero-heading{font-size:clamp(2.5rem,4.6vw,4.25rem);line-height:1.07;letter-spacing:-.05em;margin:0 0 26px}
.atlas-hero-slide .atlas-home-lede{font-size:1.08rem}
.atlas-hero-detail{font-size:.9rem;color:var(--muted);max-width:440px}
.atlas-hero-slide .atlas-home-stack{width:100%;max-width:440px;justify-self:center}
.atlas-hero-slide .atlas-home-stack figcaption{margin-top:22px}
.atlas-hero-slide .atlas-home-kids-view{gap:12px;padding:20px}
.atlas-hero-slide figure{margin:0;min-width:0}
.atlas-hero-slide figcaption{text-align:center;font-size:.7rem;color:var(--muted);line-height:1.6;margin-top:12px}
.atlas-layers-art{position:relative;background:#fff;overflow:hidden;aspect-ratio:1110/1140}
.atlas-layers-art img,.atlas-layers-art .atlas-layers-animation{display:block;width:100%;height:100%;object-fit:contain}
.atlas-layers-animation{position:absolute;inset:0;visibility:hidden}
.atlas-layers-art[data-animation-ready="true"] .atlas-layers-animation{visibility:visible}
.atlas-hero-controls{display:none;position:absolute;left:0;right:0;top:45%;pointer-events:none;align-items:center;justify-content:space-between}
.atlas-hero-ready .atlas-hero-controls{display:flex}
.atlas-home .atlas-hero-controls button{pointer-events:auto;padding:0;min-width:44px;min-height:44px;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--ink);font:inherit;box-shadow:0 2px 8px #17253512}
.atlas-hero-controls button:hover{background:var(--home-sage)}
.atlas-hero-visual button:focus-visible{outline:3px solid #146b5d;outline-offset:3px}
.atlas-hero-footer{display:flex;align-items:center;justify-content:center;gap:18px;margin-top:20px;font-size:.75rem;color:var(--muted)}
.atlas-home .atlas-hero-pause{padding:7px 12px;min-height:36px;border:1px solid var(--line);border-radius:4px;background:#fff;color:var(--ink);font:inherit;font-size:.75rem}
.atlas-hero-pause[hidden]{display:none}
@media(max-width:760px){.atlas-home-hero.atlas-hero-visual{padding-top:28px}.atlas-hero-window{margin:0 26px}.atlas-hero-slide{grid-template-columns:1fr;gap:28px;align-content:start}.atlas-hero-slide .atlas-hero-heading{font-size:2.6rem}.atlas-hero-slide .atlas-home-stack{max-width:340px}.atlas-hero-slide .atlas-home-kids-view{padding:12px;gap:8px}.atlas-home .atlas-hero-controls button{width:28px;min-height:40px;height:40px}.atlas-hero-slide .atlas-home-actions{gap:18px;margin-top:22px}.atlas-hero-slide .atlas-home-lede{font-size:1rem}.atlas-hero-footer{margin-top:18px}}
@media(prefers-reduced-motion:reduce){.atlas-hero-slide{transition:none}.atlas-layers-art .atlas-layers-animation{display:none}}

/* Stack each mobile card as heading, artwork, then supporting copy. */
@media(max-width:760px){
  .atlas-hero-slide{row-gap:0}
  .atlas-hero-slide .atlas-home-intro{display:contents}
  .atlas-hero-slide .atlas-home-intro> *{order:2}
  .atlas-hero-slide .atlas-home-intro>.eyebrow,
  .atlas-hero-slide .atlas-home-intro>.atlas-hero-heading{order:0}
  .atlas-hero-slide>figure{order:1;margin-bottom:28px}
}

/* Slightly tighter spacing between homepage sections. */
.atlas-home-hero.atlas-hero-visual{padding-top:18px;padding-bottom:20px}
.atlas-home .custom-posters{margin-top:16px;padding-top:26px;padding-bottom:30px}
.atlas-home-about{padding-top:32px;padding-bottom:36px}
.atlas-home-custom{padding-top:34px;padding-bottom:34px;margin-bottom:56px}
.atlas-home-community{padding-top:48px;padding-bottom:48px}
@media(max-width:760px){.atlas-home-hero.atlas-hero-visual{padding-top:20px;padding-bottom:16px}.atlas-home-about{padding-top:26px;padding-bottom:26px}.atlas-home-custom{padding-top:26px;padding-bottom:26px;margin-bottom:36px}.atlas-home-community{padding-top:32px;padding-bottom:32px}}

/* Spread the first card's posters across more of the available desktop width. */
@media(min-width:761px){
  .atlas-hero-slide .atlas-home-stack{max-width:540px}
  .atlas-hero-slide .atlas-map-stack{aspect-ratio:.96}
  .atlas-hero-slide .atlas-map-stack .atlas-paper{width:44%}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-kids{left:0}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-town{left:56%}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-park{left:28%;width:44%}
}

/* Enlarge the desktop posters by 30%, keeping room for their rotated edges. */
@media(min-width:761px){
  .atlas-hero-slide:first-child{grid-template-columns:.75fr 1.4fr}
  .atlas-hero-slide .atlas-home-stack{width:calc(100% - 100px)}
  .atlas-hero-slide .atlas-map-stack{aspect-ratio:.76}
  .atlas-hero-slide .atlas-map-stack .atlas-paper{width:57.2%}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-kids{left:-6.6%;top:6%}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-town{left:49.4%;top:15%}
  .atlas-hero-slide .atlas-map-stack .atlas-stack-park{left:21.4%;top:38%;width:57.2%}
}

/* Six complete library covers share the desktop row; smaller screens scroll. */
@media(min-width:1100px){.atlas-home-finished .atlas-finished-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr))}.atlas-home-finished .atlas-finished-card{width:auto;min-width:0}}

/* Free collection carousel card: preserve each complete poster. */
.atlas-free-maps{margin:0;min-width:0;width:100%;max-width:560px;justify-self:center}.atlas-free-gallery{display:block;text-decoration:none}.atlas-free-gallery img{display:block;width:100%;height:auto}.atlas-free-maps figcaption{text-align:center;font-size:.75rem;color:var(--muted);margin-top:10px}@media(max-width:700px){.atlas-free-maps{max-width:440px}}
