/* Welcome page. Colors come from the tokens in styles.css. */
/* A bit wider than the other pages, to fit the photos beside the cards. */
.home,.home ~ footer:not(.site-footer){max-width:52rem}
/* Poster header: two jumpers in freefall over QUASE / PARAQUEDISTA, printed on paper. The poster is
   portrait and already carries the name, so it is shown whole (contain), centered on its own paper
   color, and the page's h1 is kept for screen readers only. The height keeps the name readable on a
   phone without pushing the tools too far down. */
.home .page-top{
  position:relative;isolation:isolate;
  margin:calc(-1 * clamp(1rem,3vh,1.75rem)) -1.25rem 1.25rem;padding:1.25rem 1.25rem 0;height:clamp(20rem,85vw,28rem);
  border-radius:0 0 1.5rem 1.5rem;background:#F2E6D3;
}
/* The poster, faded at its sides and top into the paper color so no seam shows. */
.home .page-top::before{
  content:"";position:absolute;z-index:-1;top:.75rem;bottom:0;left:50%;transform:translateX(-50%);aspect-ratio:769/1000;max-width:100%;
  background:url("../images/hero/quaseParaquedista-web.jpg") 50% 100%/contain no-repeat;
  --fade-sides:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent);--fade-top:linear-gradient(transparent,#000 3%);
  -webkit-mask-image:var(--fade-sides),var(--fade-top);-webkit-mask-composite:source-in;
  mask-image:var(--fade-sides),var(--fade-top);mask-composite:intersect;
}
@media (min-width:52rem){.home .page-top{margin-top:1rem;border-radius:1.5rem}}
/* The title sits off screen (the poster shows it), so the menu keeps to the right. */
.home .site-nav{margin:0 0 0 auto}
/* pre-line: a "\n" in the welcome text starts a new line. */
.home-lead{margin:0 0 1.25rem;font-size:1.2rem;white-space:pre-line}

.home-audiences{list-style:none;margin:0;padding:0;display:grid;gap:.6rem;align-content:start}
.home-audience{display:block;height:100%;background:var(--panel);border:1px solid var(--line);border-radius:1rem;padding:.8rem 1rem;color:var(--ink-soft);text-decoration:none;box-shadow:var(--shadow)}
a.home-audience[href]:hover{border-color:var(--ink)}
.home-audience:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.home-audiences strong{color:var(--ink)}
.home-audience-cta{display:flex;align-items:center;gap:.5rem;margin-top:.45rem;font-weight:700;color:var(--ink)}
.home-audience-cta [aria-hidden]{display:grid;place-items:center;width:1.6rem;height:1.6rem;border-radius:50%;background:var(--accent);color:var(--on-accent)}
.home-audience-cta[hidden]{display:none}

/* The three tools: big tappable cards, one per row on phones, side by side on wide screens */
.home-tools{list-style:none;margin:0 0 1.75rem;padding:0;display:grid;gap:.6rem;grid-template-columns:repeat(auto-fit,minmax(14rem,1fr))}
.home-tool{
  display:flex;align-items:center;gap:.85rem;height:100%;padding:.85rem 1rem;text-decoration:none;color:var(--ink);
  background:var(--panel);border:1px solid var(--line);border-radius:1.1rem;box-shadow:var(--shadow)
}
.home-tool:hover{border-color:var(--ink)}
.home-tool:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.home-tool-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.1rem}
.home-tool-name{font-weight:700;font-size:1.08rem}
.home-tool-desc{font-size:.9rem;color:var(--ink-soft)}
.home-tool-arrow{flex:none;font-size:1.3rem;font-weight:700;color:var(--ink)}

/* Cards beside the photos; stacked on narrow screens, photos first */
.home-intro{display:grid;grid-template-columns:minmax(0,1fr) 17rem;gap:1.25rem 1.75rem;align-items:start;margin-bottom:2rem}
/* Last in the page content (the Instagram line moved to the end): the page's own bottom space is enough. */
.home-intro:last-child{margin-bottom:0}
@media (max-width:760px){
  .home-intro{grid-template-columns:minmax(0,1fr)}
  .carousel{order:-1;width:100%;max-width:22rem;justify-self:center}
}

/* Photo carousel */
.carousel-frame{position:relative;display:block;aspect-ratio:4/5;border-radius:1.1rem;overflow:hidden;background:var(--panel);border:1px solid var(--line)}
.carousel-frame:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.carousel-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .8s ease}
.carousel-slide.is-active{opacity:1}
@media (prefers-reduced-motion:reduce){.carousel-slide{transition:none}}
.carousel-controls{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin-top:.4rem}
.carousel-dots{display:flex}
.carousel-dot{display:grid;place-items:center;width:1.75rem;height:1.75rem;padding:0;border:0;background:transparent;cursor:pointer;border-radius:50%}
.carousel-dot::after{content:"";width:.6rem;height:.6rem;border-radius:50%;border:1.5px solid var(--ink-soft)}
.carousel-dot[aria-current="true"]::after{background:var(--accent);border-color:var(--accent)}
.carousel-dot:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.carousel-toggle{font:inherit;font-size:.85rem;color:var(--ink-soft);background:transparent;border:0;padding:.3rem .5rem;border-radius:999px;cursor:pointer}
.carousel-toggle:hover{color:var(--ink)}
.carousel-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:1px}


